From f40b22bf4293ce1f9ed69d33dfb46c00c1ac21a4 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: May 04 2006 20:40:49 +0000 Subject: add appletalk socket for cups --- diff --git a/refpolicy/policy/flask/access_vectors b/refpolicy/policy/flask/access_vectors index 57e55a6..3dbfeaa 100644 --- a/refpolicy/policy/flask/access_vectors +++ b/refpolicy/policy/flask/access_vectors @@ -607,3 +607,6 @@ class association # Updated Netlink class for KOBJECT_UEVENT family. class netlink_kobject_uevent_socket inherits socket + +class appletalk_socket +inherits socket diff --git a/refpolicy/policy/flask/security_classes b/refpolicy/policy/flask/security_classes index e51ae88..3495ab1 100644 --- a/refpolicy/policy/flask/security_classes +++ b/refpolicy/policy/flask/security_classes @@ -86,4 +86,6 @@ class association # Updated Netlink class for KOBJECT_UEVENT family. class netlink_kobject_uevent_socket +class appletalk_socket + # FLASK diff --git a/refpolicy/policy/modules/services/cups.te b/refpolicy/policy/modules/services/cups.te index 1f8f1f7..7c3fbcb 100644 --- a/refpolicy/policy/modules/services/cups.te +++ b/refpolicy/policy/modules/services/cups.te @@ -84,6 +84,9 @@ allow cupsd_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_rela allow cupsd_t self:netlink_route_socket { r_netlink_socket_perms }; allow cupsd_t self:tcp_socket { create_stream_socket_perms connectto acceptfrom recvfrom }; allow cupsd_t self:udp_socket create_socket_perms; +allow cupsd_t self:appletalk_socket create_socket_perms; +# generic socket here until appletalk socket is available in kernels +allow cupsd_t self:socket create_socket_perms; allow cupsd_t cupsd_etc_t:file { r_file_perms setattr }; allow cupsd_t cupsd_etc_t:dir { rw_dir_perms setattr }; diff --git a/refpolicy/policy/support/obj_perm_sets.spt b/refpolicy/policy/support/obj_perm_sets.spt index d487080..eea1598 100644 --- a/refpolicy/policy/support/obj_perm_sets.spt +++ b/refpolicy/policy/support/obj_perm_sets.spt @@ -28,7 +28,7 @@ define(`devfile_class_set', `{ chr_file blk_file }') # # All socket classes. # -define(`socket_class_set', `{ tcp_socket udp_socket rawip_socket netlink_socket packet_socket unix_stream_socket unix_dgram_socket netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_nflog_socket netlink_xfrm_socket netlink_selinux_socket netlink_audit_socket netlink_ip6fw_socket netlink_dnrt_socket netlink_kobject_uevent_socket }') +define(`socket_class_set', `{ tcp_socket udp_socket rawip_socket netlink_socket packet_socket unix_stream_socket unix_dgram_socket appletalk_socket netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_nflog_socket netlink_xfrm_socket netlink_selinux_socket netlink_audit_socket netlink_ip6fw_socket netlink_dnrt_socket netlink_kobject_uevent_socket }') #