- Patch to allow insmod to mount kvmfs and dontaudit rw unconfined_t pipes

to handle usage from userhelper.
This commit is contained in:
Chris PeBenito 2007-05-02 17:31:38 +00:00
parent 6a2975706a
commit 882186c933
4 changed files with 27 additions and 2 deletions

View File

@ -1,3 +1,5 @@
- Patch to allow insmod to mount kvmfs and dontaudit rw unconfined_t pipes
to handle usage from userhelper.
- Patch to allow amavis to read spamassassin libraries from Dan Walsh.
- Patch to allow slocate to getattr other filesystems and directories on those
filesystems from Dan Walsh.

View File

@ -552,6 +552,24 @@ interface(`kernel_read_debugfs',`
list_dirs_pattern($1,debugfs_t,debugfs_t)
')
########################################
## <summary>
## Mount a kernel VM filesystem.
## </summary>
## <param name="domain">
## <summary>
## The type of the domain mounting the filesystem.
## </summary>
## </param>
#
interface(`kernel_mount_kvmfs',`
gen_require(`
type kvmfs_t;
')
allow $1 kvmfs_t:filesystem mount;
')
########################################
## <summary>
## Unmount the proc filesystem.

View File

@ -1,5 +1,5 @@
policy_module(kernel,1.6.0)
policy_module(kernel,1.6.1)
########################################
#

View File

@ -1,5 +1,5 @@
policy_module(modutils,1.3.0)
policy_module(modutils,1.3.1)
gen_require(`
bool secure_mode_insmod;
@ -58,6 +58,7 @@ kernel_load_module(insmod_t)
kernel_read_system_state(insmod_t)
kernel_write_proc_files(insmod_t)
kernel_mount_debugfs(insmod_t)
kernel_mount_kvmfs(insmod_t)
kernel_read_debugfs(insmod_t)
# Rules for /proc/sys/kernel/tainted
kernel_read_kernel_sysctls(insmod_t)
@ -156,6 +157,10 @@ optional_policy(`
rpm_rw_pipes(insmod_t)
')
optional_policy(`
unconfined_dontaudit_rw_pipes(insmod_t)
')
optional_policy(`
# cjp: why is this needed:
dev_rw_xserver_misc(insmod_t)