Skip to contentSkip to conversation

Kerberos changes for policy

DISCUSSION Christopher J. PeBenito 1 participant 1 message Feb 28, 2007 1 message not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · On Mon, 2007-02-26 at 12:26 -0500, [email protected] wrote:

Dontaudit additional library checks on files
kdc requires setsched
Needs to communicate with itself over fifo files
Wants to look at the network

This one is a dupe (already upstreamed).

Quoted 38 lines

===File /tmp/patches/done/nsaserefpolicy_policy_modules_services_kerberos.patch===

policy/modules/services/kerberos.if +2 -2
@@ -40,8 +40,8 @@
 	files_search_etc($1)
 	allow $1 krb5_conf_t:file { getattr read };
 	dontaudit $1 krb5_conf_t:file write;
-	dontaudit $1 krb5kdc_conf_t:dir list_dir_perms;
-	dontaudit $1 krb5kdc_conf_t:file read_file_perms;
+	dontaudit $1 krb5kdc_conf_t:dir r_dir_perms;
+	dontaudit $1 krb5kdc_conf_t:file rw_file_perms;
 
 	tunable_policy(`allow_kerberos',`
 		allow $1 self:tcp_socket create_socket_perms;
policy/modules/services/kerberos.te +3 -1
@@ -154,10 +154,11 @@
 # Use capabilities. Surplus capabilities may be allowed.
 allow krb5kdc_t self:capability { setuid setgid net_admin chown fowner dac_override sys_nice };
 dontaudit krb5kdc_t self:capability sys_tty_config;
-allow krb5kdc_t self:process { getsched signal_perms };
+allow krb5kdc_t self:process { setsched getsched signal_perms };
 allow krb5kdc_t self:netlink_route_socket r_netlink_socket_perms;
 allow krb5kdc_t self:tcp_socket create_stream_socket_perms;
 allow krb5kdc_t self:udp_socket create_socket_perms;
+allow krb5kdc_t self:fifo_file rw_fifo_file_perms;
 
 allow krb5kdc_t krb5_conf_t:file read_file_perms;
 dontaudit krb5kdc_t krb5_conf_t:file write;
@@ -185,6 +186,7 @@
 kernel_list_proc(krb5kdc_t)
 kernel_read_proc_symlinks(krb5kdc_t)
 kernel_read_network_state(krb5kdc_t)
+kernel_search_network_sysctl(krb5kdc_t)
 
 corecmd_exec_sbin(krb5kdc_t)
 corecmd_exec_bin(krb5kdc_t)

============================================================

Signature · 10 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.