sysctl: use umode_t for table permissions
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -1038,7 +1038,7 @@ struct ctl_table
|
|||||||
const char *procname; /* Text ID for /proc/sys, or zero */
|
const char *procname; /* Text ID for /proc/sys, or zero */
|
||||||
void *data;
|
void *data;
|
||||||
int maxlen;
|
int maxlen;
|
||||||
mode_t mode;
|
umode_t mode;
|
||||||
struct ctl_table *child;
|
struct ctl_table *child;
|
||||||
struct ctl_table *parent; /* Automatically set */
|
struct ctl_table *parent; /* Automatically set */
|
||||||
proc_handler *proc_handler; /* Callback for text formatting */
|
proc_handler *proc_handler; /* Callback for text formatting */
|
||||||
|
@@ -6480,7 +6480,7 @@ static void sd_free_ctl_entry(struct ctl_table **tablep)
|
|||||||
static void
|
static void
|
||||||
set_table_entry(struct ctl_table *entry,
|
set_table_entry(struct ctl_table *entry,
|
||||||
const char *procname, void *data, int maxlen,
|
const char *procname, void *data, int maxlen,
|
||||||
mode_t mode, proc_handler *proc_handler)
|
umode_t mode, proc_handler *proc_handler)
|
||||||
{
|
{
|
||||||
entry->procname = procname;
|
entry->procname = procname;
|
||||||
entry->data = data;
|
entry->data = data;
|
||||||
|
Reference in New Issue
Block a user