trunk: Module loading now requires setsched on kernel threads.

This commit is contained in:
Chris PeBenito 2008-05-22 18:39:03 +00:00
parent b34db7a8ec
commit 4416c416fa
4 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,4 @@
- Module loading now requires setsched on kernel threads.
- Patch to allow gpg agent --write-env-file option from Vaclav Ovsik.
- X application data class from Eamon Walsh and Ted Toth.
- Move user roles into individual modules.

View File

@ -330,6 +330,11 @@ interface(`kernel_load_module',`
allow $1 self:capability sys_module;
typeattribute $1 can_load_kernmodule;
# load_module() calls stop_machine() which
# calls sched_setscheduler()
allow $1 self:capability sys_nice;
kernel_setsched($1)
')
########################################

View File

@ -1,5 +1,5 @@
policy_module(kernel,1.9.1)
policy_module(kernel,1.9.2)
########################################
#

View File

@ -20,7 +20,7 @@ files_pid_file(NetworkManager_var_run_t)
# networkmanager will ptrace itself if gdb is installed
# and it receives a unexpected signal (rh bug #204161)
allow NetworkManager_t self:capability { kill setgid setuid sys_nice dac_override net_admin net_raw net_bind_service ipc_lock };
allow NetworkManager_t self:capability { kill setgid setuid dac_override net_admin net_raw net_bind_service ipc_lock };
dontaudit NetworkManager_t self:capability { sys_tty_config sys_ptrace };
allow NetworkManager_t self:process { ptrace setcap setpgid getsched signal_perms };
allow NetworkManager_t self:fifo_file rw_fifo_file_perms;