[w3m-dev 03374] disable_secret_security_check
* etc.c (openSecurityFile): disable_secret_security_check * fm.h (disable_secret_security_check): added * rc.c (CMT_DISABLE_SECRET_SECURITY_CHECK): added (disable_secret_security_check): added * NEWS: rc: disable_secret_security_check From: Fumitoshi UKAI <ukai@debian.or.jp>
This commit is contained in:
11
ChangeLog
11
ChangeLog
@@ -1,3 +1,12 @@
|
|||||||
|
2002-11-06 Fumitoshi UKAI <ukai@debian.or.jp>
|
||||||
|
|
||||||
|
* [w3m-dev 03374] disable_secret_security_check
|
||||||
|
* etc.c (openSecurityFile): disable_secret_security_check
|
||||||
|
* fm.h (disable_secret_security_check): added
|
||||||
|
* rc.c (CMT_DISABLE_SECRET_SECURITY_CHECK): added
|
||||||
|
(disable_secret_security_check): added
|
||||||
|
* NEWS: rc: disable_secret_security_check
|
||||||
|
|
||||||
2002-11-06 Fumitoshi UKAI <ukai@debian.or.jp>
|
2002-11-06 Fumitoshi UKAI <ukai@debian.or.jp>
|
||||||
|
|
||||||
* NEWS: update
|
* NEWS: update
|
||||||
@@ -4296,4 +4305,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.476 2002/11/05 17:35:09 ukai Exp $
|
$Id: ChangeLog,v 1.477 2002/11/05 17:54:38 ukai Exp $
|
||||||
|
|||||||
1
NEWS
1
NEWS
@@ -1,5 +1,6 @@
|
|||||||
w3m 0.3.3 or 0.4?
|
w3m 0.3.3 or 0.4?
|
||||||
|
|
||||||
|
* rc: disable_secret_security_check (for windows?)
|
||||||
* tab browsing
|
* tab browsing
|
||||||
* rc: open_tab_blank, close_tab_back
|
* rc: open_tab_blank, close_tab_back
|
||||||
* func: CLOSE_TAB, NEW_TAB, NEXT_TAB, PREV_TAB,
|
* func: CLOSE_TAB, NEW_TAB, NEXT_TAB, PREV_TAB,
|
||||||
|
|||||||
12
etc.c
12
etc.c
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: etc.c,v 1.32 2002/11/05 17:12:02 ukai Exp $ */
|
/* $Id: etc.c,v 1.33 2002/11/05 17:54:39 ukai Exp $ */
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include "myctype.h"
|
#include "myctype.h"
|
||||||
@@ -1047,8 +1047,16 @@ openSecretFile(char *fname)
|
|||||||
|
|
||||||
/* check permissions, if group or others readable or writable,
|
/* check permissions, if group or others readable or writable,
|
||||||
* refuse it, because it's insecure.
|
* refuse it, because it's insecure.
|
||||||
|
*
|
||||||
|
* XXX: disable_secret_security_check will introduce some
|
||||||
|
* security issues, but on some platform such as Windows
|
||||||
|
* it's not possible (or feasible) to disable group|other
|
||||||
|
* readable and writable.
|
||||||
|
* [w3m-dev 03368][w3m-dev 03369][w3m-dev 03370]
|
||||||
*/
|
*/
|
||||||
if ((st.st_mode & (S_IRWXG | S_IRWXO)) != 0) {
|
if (disable_secret_security_check)
|
||||||
|
/* do nothing */ ;
|
||||||
|
else if ((st.st_mode & (S_IRWXG | S_IRWXO)) != 0) {
|
||||||
if (fmInitialized) {
|
if (fmInitialized) {
|
||||||
message(Sprintf(FILE_IS_READABLE_MSG, fname)->ptr, 0, 0);
|
message(Sprintf(FILE_IS_READABLE_MSG, fname)->ptr, 0, 0);
|
||||||
refresh();
|
refresh();
|
||||||
|
|||||||
3
fm.h
3
fm.h
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: fm.h,v 1.69 2002/11/05 17:10:05 ukai Exp $ */
|
/* $Id: fm.h,v 1.70 2002/11/05 17:54:39 ukai Exp $ */
|
||||||
/*
|
/*
|
||||||
* w3m: WWW wo Miru utility
|
* w3m: WWW wo Miru utility
|
||||||
*
|
*
|
||||||
@@ -863,6 +863,7 @@ global char *ExtBrowser init(DEF_EXT_BROWSER);
|
|||||||
global char *ExtBrowser2 init(NULL);
|
global char *ExtBrowser2 init(NULL);
|
||||||
global char *ExtBrowser3 init(NULL);
|
global char *ExtBrowser3 init(NULL);
|
||||||
global int BackgroundExtViewer init(TRUE);
|
global int BackgroundExtViewer init(TRUE);
|
||||||
|
global int disable_secret_security_check init(FALSE);
|
||||||
global char *passwd_file init(PASSWD_FILE);
|
global char *passwd_file init(PASSWD_FILE);
|
||||||
global char *pre_form_file init(PRE_FORM_FILE);
|
global char *pre_form_file init(PRE_FORM_FILE);
|
||||||
global char *ftppasswd init(NULL);
|
global char *ftppasswd init(NULL);
|
||||||
|
|||||||
9
rc.c
9
rc.c
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: rc.c,v 1.57 2002/11/05 17:34:29 ukai Exp $ */
|
/* $Id: rc.c,v 1.58 2002/11/05 17:54:39 ukai Exp $ */
|
||||||
/*
|
/*
|
||||||
* Initialization file etc.
|
* Initialization file etc.
|
||||||
*/
|
*/
|
||||||
@@ -130,6 +130,7 @@ static char *config_file = NULL;
|
|||||||
#define CMT_EXTBRZ "外部ブラウザ"
|
#define CMT_EXTBRZ "外部ブラウザ"
|
||||||
#define CMT_EXTBRZ2 "外部ブラウザその2"
|
#define CMT_EXTBRZ2 "外部ブラウザその2"
|
||||||
#define CMT_EXTBRZ3 "外部ブラウザその3"
|
#define CMT_EXTBRZ3 "外部ブラウザその3"
|
||||||
|
#define CMT_DISABLE_SECRET_SECURITY_CHECK "パスワードファイルのパーミッションをチェックしない"
|
||||||
#define CMT_PASSWDFILE "パスワードファイル"
|
#define CMT_PASSWDFILE "パスワードファイル"
|
||||||
#define CMT_FTPPASS "FTPのパスワード(普通は自分のmail addressを使う)"
|
#define CMT_FTPPASS "FTPのパスワード(普通は自分のmail addressを使う)"
|
||||||
#ifdef FTPPASS_HOSTNAMEGEN
|
#ifdef FTPPASS_HOSTNAMEGEN
|
||||||
@@ -275,6 +276,7 @@ static char *config_file = NULL;
|
|||||||
#define CMT_EXTBRZ "External Browser"
|
#define CMT_EXTBRZ "External Browser"
|
||||||
#define CMT_EXTBRZ2 "Second External Browser"
|
#define CMT_EXTBRZ2 "Second External Browser"
|
||||||
#define CMT_EXTBRZ3 "Third External Browser"
|
#define CMT_EXTBRZ3 "Third External Browser"
|
||||||
|
#define CMT_DISABLE_SECRET_SECURITY_CHECK "Disable secret file security check"
|
||||||
#define CMT_PASSWDFILE "Password file"
|
#define CMT_PASSWDFILE "Password file"
|
||||||
#define CMT_FTPPASS "Password for anonymous FTP (your mail address)"
|
#define CMT_FTPPASS "Password for anonymous FTP (your mail address)"
|
||||||
#ifdef FTPPASS_HOSTNAMEGEN
|
#ifdef FTPPASS_HOSTNAMEGEN
|
||||||
@@ -488,7 +490,7 @@ struct param_ptr params1[] = {
|
|||||||
{"multicol", P_INT, PI_ONOFF, (void *)&multicolList, CMT_MULTICOL, NULL},
|
{"multicol", P_INT, PI_ONOFF, (void *)&multicolList, CMT_MULTICOL, NULL},
|
||||||
{"alt_entity", P_CHARINT, PI_ONOFF, (void *)&UseAltEntity, CMT_ALT_ENTITY,
|
{"alt_entity", P_CHARINT, PI_ONOFF, (void *)&UseAltEntity, CMT_ALT_ENTITY,
|
||||||
NULL},
|
NULL},
|
||||||
{"pre_form_file", P_STRING, PI_TEXT, (void *)&pre_form_file,
|
{"pre_form_file", P_STRING, PI_TEXT, (void *)&pre_form_file,
|
||||||
CMT_PRE_FORM_FILE, NULL},
|
CMT_PRE_FORM_FILE, NULL},
|
||||||
{"fold_textarea", P_CHARINT, PI_ONOFF, (void *)&FoldTextarea,
|
{"fold_textarea", P_CHARINT, PI_ONOFF, (void *)&FoldTextarea,
|
||||||
CMT_FOLD_TEXTAREA, NULL},
|
CMT_FOLD_TEXTAREA, NULL},
|
||||||
@@ -684,6 +686,9 @@ struct param_ptr params8[] = {
|
|||||||
struct param_ptr params9[] = {
|
struct param_ptr params9[] = {
|
||||||
{"passwd_file", P_STRING, PI_TEXT, (void *)&passwd_file, CMT_PASSWDFILE,
|
{"passwd_file", P_STRING, PI_TEXT, (void *)&passwd_file, CMT_PASSWDFILE,
|
||||||
NULL},
|
NULL},
|
||||||
|
{"disable_secret_security_check", P_INT, PI_ONOFF,
|
||||||
|
(void *)&disable_secret_security_check, CMT_DISABLE_SECRET_SECURITY_CHECK,
|
||||||
|
NULL},
|
||||||
{"ftppasswd", P_STRING, PI_TEXT, (void *)&ftppasswd, CMT_FTPPASS, NULL},
|
{"ftppasswd", P_STRING, PI_TEXT, (void *)&ftppasswd, CMT_FTPPASS, NULL},
|
||||||
#ifdef FTPPASS_HOSTNAMEGEN
|
#ifdef FTPPASS_HOSTNAMEGEN
|
||||||
{"ftppass_hostnamegen", P_INT, PI_ONOFF, (void *)&ftppass_hostnamegen,
|
{"ftppass_hostnamegen", P_INT, PI_ONOFF, (void *)&ftppass_hostnamegen,
|
||||||
|
|||||||
Reference in New Issue
Block a user