platform_external_selinux/libselinux/include/selinux
KaiGai Kohei 55ed6e7fa6 This patch enables applications to handle permissive domain correctly.
Since the v2.6.26 kernel, SELinux has supported an idea of permissive
domain which allows certain processes to work as if permissive mode,
even if the global setting is enforcing mode.
However, we don't have an application program interface to inform
what domains are permissive one, and what domains are not.
It means applications focuses on SELinux (XACE/SELinux, SE-PostgreSQL
and so on) cannot handle permissive domain correctly.

This patch add the sixth field (flags) on the reply of the /selinux/access
interface which is used to make an access control decision from userspace.
If the first bit of the flags field is positive, it means the required
access control decision is on permissive domain, so application should
allow any required actions, as the kernel doing.

This patch also has a side benefit. The av_decision.flags is set at
context_struct_compute_av(). It enables to check required permissions
without read_lock(&policy_rwlock).

Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
2009-04-07 22:10:30 -04:00
..
av_permissions.h Author: Daniel J Walsh 2008-09-29 12:12:04 -04:00
avc.h The attached patch enables userspace object managers to handle notification 2009-04-07 22:08:48 -04:00
context.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
flask.h Author: Daniel J Walsh 2008-09-29 12:12:04 -04:00
get_context_list.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
get_default_type.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
label.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux.h This patch enables applications to handle permissive domain correctly. 2009-04-07 22:10:30 -04:00