Re: [PATCH] sysctl selinux: Don't look at table->de

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Smalley
Date: Monday, January 29, 2007 - 11:43 am

On Mon, 2007-01-29 at 10:43 -0700, Eric W. Biederman wrote:

True, but a system that disables proc is likely a system with a custom
policy anyway, and dependency on proc is fairly basic to selinux these
days (due to reliance on /proc/self/attr for process attribute
manipulation in place of the old selinux syscalls).  Possibly we should
just make selinux depend on proc and drop the #ifdef there.


At present, we map the sysctls into functional groups (e.g. net, vm,
fs, ...) that parallel the sysctl hierarchy so that we can limit access
to only those programs/processes that need access for their purpose, and
further partition where it makes sense to do so.  We also separate out
particularly security sensitive ones like modprobe and hotplug.  So if
the ctl_table carried some indication of functional grouping and
security relevance (for some relatively small number of equivalence
classes), then we could map those to labels instead of the current
scheme.  And if we could have the ctl_table inherit the information from
its logical "parent" in the hierarchy by default, then it shouldn't
require too invasive a patch.

-- 
Stephen Smalley
National Security Agency

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sysctl selinux: Don't look at table->de, Eric W. Biederman, (Sun Jan 28, 12:21 pm)
Re: [PATCH] sysctl selinux: Don't look at table->de, Stephen Smalley, (Mon Jan 29, 6:04 am)
Re: [PATCH] sysctl selinux: Don't look at table->de, James Morris, (Mon Jan 29, 8:23 am)
Re: [PATCH] sysctl selinux: Don't look at table->de, Eric W. Biederman, (Mon Jan 29, 10:43 am)
Re: [PATCH] sysctl selinux: Don't look at table->de, Eric W. Biederman, (Mon Jan 29, 10:55 am)
Re: [PATCH] sysctl selinux: Don't look at table->de, Stephen Smalley, (Mon Jan 29, 11:43 am)
Re: [PATCH] sysctl selinux: Don't look at table->de, Casey Schaufler, (Mon Jan 29, 12:08 pm)
Re: [PATCH] sysctl selinux: Don't look at table->de, Eric W. Biederman, (Mon Jan 29, 12:16 pm)
Re: [PATCH] sysctl selinux: Don't look at table->de, Stephen Smalley, (Mon Jan 29, 12:26 pm)
Re: [PATCH] sysctl selinux: Don't look at table->de, Stephen Smalley, (Mon Jan 29, 1:07 pm)
Re: [PATCH] sysctl selinux: Don't look at table->de, Russell Coker, (Mon Jan 29, 4:28 pm)
Re: [PATCH] sysctl selinux: Don't look at table->de, Christoph Hellwig, (Tue Jan 30, 3:25 am)
Re: [PATCH] sysctl selinux: Don't look at table->de, Casey Schaufler, (Tue Jan 30, 10:19 am)
Re: [PATCH 2/2] sysctl: Restore the selinux path based lab ..., Eric W. Biederman, (Thu Feb 8, 10:53 am)
[PATCH 0/5] sysctl cleanup selinux fixes, Eric W. Biederman, (Thu Feb 8, 3:51 pm)
[PATCH 1/5] sysctl: Remove declaration of nonexistent sys ..., Eric W. Biederman, (Thu Feb 8, 3:53 pm)
[PATCH 3/5] sysctl: Fix the selinux_sysctl_get_sid, Eric W. Biederman, (Thu Feb 8, 3:55 pm)
[PATCH 5/5] sysctl: Hide the sysctl proc inodes from selinux., Eric W. Biederman, (Thu Feb 8, 4:04 pm)
Re: [PATCH 0/5] sysctl cleanup selinux fixes, Andrew Morton, (Fri Feb 9, 4:05 am)
Re: [PATCH 3/5] sysctl: Fix the selinux_sysctl_get_sid, Stephen Smalley, (Fri Feb 9, 5:24 am)
Re: [PATCH 0/5] sysctl cleanup selinux fixes, Eric W. Biederman, (Fri Feb 9, 11:09 am)