[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>
|
||||
|
||||
* NEWS: update
|
||||
@@ -4296,4 +4305,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
||||
* release-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?
|
||||
|
||||
* rc: disable_secret_security_check (for windows?)
|
||||
* tab browsing
|
||||
* rc: open_tab_blank, close_tab_back
|
||||
* 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 <pwd.h>
|
||||
#include "myctype.h"
|
||||
@@ -1047,8 +1047,16 @@ openSecretFile(char *fname)
|
||||
|
||||
/* check permissions, if group or others readable or writable,
|
||||
* 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) {
|
||||
message(Sprintf(FILE_IS_READABLE_MSG, fname)->ptr, 0, 0);
|
||||
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
|
||||
*
|
||||
@@ -863,6 +863,7 @@ global char *ExtBrowser init(DEF_EXT_BROWSER);
|
||||
global char *ExtBrowser2 init(NULL);
|
||||
global char *ExtBrowser3 init(NULL);
|
||||
global int BackgroundExtViewer init(TRUE);
|
||||
global int disable_secret_security_check init(FALSE);
|
||||
global char *passwd_file init(PASSWD_FILE);
|
||||
global char *pre_form_file init(PRE_FORM_FILE);
|
||||
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.
|
||||
*/
|
||||
@@ -130,6 +130,7 @@ static char *config_file = NULL;
|
||||
#define CMT_EXTBRZ "<22><><EFBFBD><EFBFBD><EFBFBD>֥饦<D6A5><E9A5A6>"
|
||||
#define CMT_EXTBRZ2 "<22><><EFBFBD><EFBFBD><EFBFBD>֥饦<D6A5><E9A5A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2"
|
||||
#define CMT_EXTBRZ3 "<22><><EFBFBD><EFBFBD><EFBFBD>֥饦<D6A5><E9A5A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3"
|
||||
#define CMT_DISABLE_SECRET_SECURITY_CHECK "<22>ѥ<EFBFBD><D1A5><EFBFBD>ɥե<C9A5><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υѡ<CEA5><D1A1>ߥå<DFA5><C3A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD>ʤ<EFBFBD>"
|
||||
#define CMT_PASSWDFILE "<22>ѥ<EFBFBD><D1A5><EFBFBD>ɥե<C9A5><D5A5><EFBFBD><EFBFBD><EFBFBD>"
|
||||
#define CMT_FTPPASS "FTP<54>Υѥ<CEA5><D1A5><EFBFBD><EFA1BC>(<28><><EFBFBD>̤ϼ<CCA4>ʬ<EFBFBD><CAAC>mail address<73><73><EFBFBD>Ȥ<EFBFBD>)"
|
||||
#ifdef FTPPASS_HOSTNAMEGEN
|
||||
@@ -275,6 +276,7 @@ static char *config_file = NULL;
|
||||
#define CMT_EXTBRZ "External Browser"
|
||||
#define CMT_EXTBRZ2 "Second 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_FTPPASS "Password for anonymous FTP (your mail address)"
|
||||
#ifdef FTPPASS_HOSTNAMEGEN
|
||||
@@ -488,7 +490,7 @@ struct param_ptr params1[] = {
|
||||
{"multicol", P_INT, PI_ONOFF, (void *)&multicolList, CMT_MULTICOL, NULL},
|
||||
{"alt_entity", P_CHARINT, PI_ONOFF, (void *)&UseAltEntity, CMT_ALT_ENTITY,
|
||||
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},
|
||||
{"fold_textarea", P_CHARINT, PI_ONOFF, (void *)&FoldTextarea,
|
||||
CMT_FOLD_TEXTAREA, NULL},
|
||||
@@ -684,6 +686,9 @@ struct param_ptr params8[] = {
|
||||
struct param_ptr params9[] = {
|
||||
{"passwd_file", P_STRING, PI_TEXT, (void *)&passwd_file, CMT_PASSWDFILE,
|
||||
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},
|
||||
#ifdef FTPPASS_HOSTNAMEGEN
|
||||
{"ftppass_hostnamegen", P_INT, PI_ONOFF, (void *)&ftppass_hostnamegen,
|
||||
|
Reference in New Issue
Block a user