appletalk sockets
Quoted 5 lines · Christopher J. PeBenito
Quoted 4 lines · Daniel J Walsh
Quoted 3 lines · Christopher J. PeBenito
Quoted 1 line · Daniel J Walsh
cups needs to be able to create socket to itself.
Quoted 8 lines
Quoted 5 lines
Quoted 4 lines
This needs more investigation; we need to find out more about this generic socket so we can add a specific class for it.
http://www.redhat.com/archives/fedora-selinux-list/2006-April/msg00216.html
So it appears that a class for appletalk sockets needs to be added.
How about the attached patches?
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150
security/selinux/hooks.c +2 -0
@@ -665,6 +665,8 @@ static inline u16 socket_type_to_securitreturn SECCLASS_PACKET_SOCKET ;case PF_KEY :return SECCLASS_KEY_SOCKET ; +case PF_APPLETALK : +return SECCLASS_APPLETALK_SOCKET ; }return SECCLASS_SOCKET ;
security/selinux/include/av_inherit.h +1 -0
@@ -29,3 +29,4 @@ S_(SECCLASS_NETLINK_IP6FW_SOCKET, socket, 0x00400000UL) S_(SECCLASS_NETLINK_DNRT_SOCKET, socket, 0x00400000UL) S_(SECCLASS_NETLINK_KOBJECT_UEVENT_SOCKET, socket, 0x00400000UL) +S_ (SECCLASS_APPLETALK_SOCKET , socket,0x00400000UL )
security/selinux/include/av_permissions.h +23 -0
@@ -933,3 +933,26 @@#define NETLINK_KOBJECT_UEVENT_SOCKET__SEND_MSG 0x00100000UL#define NETLINK_KOBJECT_UEVENT_SOCKET__NAME_BIND 0x00200000UL +#define APPLETALK_SOCKET__IOCTL 0x00000001UL +#define APPLETALK_SOCKET__READ 0x00000002UL +#define APPLETALK_SOCKET__WRITE 0x00000004UL +#define APPLETALK_SOCKET__CREATE 0x00000008UL +#define APPLETALK_SOCKET__GETATTR 0x00000010UL +#define APPLETALK_SOCKET__SETATTR 0x00000020UL +#define APPLETALK_SOCKET__LOCK 0x00000040UL +#define APPLETALK_SOCKET__RELABELFROM 0x00000080UL +#define APPLETALK_SOCKET__RELABELTO 0x00000100UL +#define APPLETALK_SOCKET__APPEND 0x00000200UL +#define APPLETALK_SOCKET__BIND 0x00000400UL +#define APPLETALK_SOCKET__CONNECT 0x00000800UL +#define APPLETALK_SOCKET__LISTEN 0x00001000UL +#define APPLETALK_SOCKET__ACCEPT 0x00002000UL +#define APPLETALK_SOCKET__GETOPT 0x00004000UL +#define APPLETALK_SOCKET__SETOPT 0x00008000UL +#define APPLETALK_SOCKET__SHUTDOWN 0x00010000UL +#define APPLETALK_SOCKET__RECVFROM 0x00020000UL +#define APPLETALK_SOCKET__SENDTO 0x00040000UL +#define APPLETALK_SOCKET__RECV_MSG 0x00080000UL +#define APPLETALK_SOCKET__SEND_MSG 0x00100000UL +#define APPLETALK_SOCKET__NAME_BIND 0x00200000UL +
security/selinux/include/class_to_string.h +1 -0
@@ -58,3 +58,4 @@ S_("nscd") S_("association") S_("netlink_kobject_uevent_socket") +S_ ("appletalk_socket" )
security/selinux/include/flask.h +1 -0
@@ -60,6 +60,7 @@#define SECCLASS_NSCD 53#define SECCLASS_ASSOCIATION 54#define SECCLASS_NETLINK_KOBJECT_UEVENT_SOCKET 55 +#define SECCLASS_APPLETALK_SOCKET 56/* * Security identifier indices for initial entities
flask/security_classes +2 -0
@@ -86,4 +86,6 @@ # Updated Netlink class for KOBJECT_UEVENT family. class netlink_kobject_uevent_socket +class appletalk_socket + # FLASK
flask/access_vectors +3 -0
@@ -607,3 +607,6 @@ # Updated Netlink class for KOBJECT_UEVENT family. class netlink_kobject_uevent_socket inherits socket + +class appletalk_socket +inherits socket
modules/services/cups.te +3 -0
@@ -84,6 +84,9 @@ 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 };
support/obj_perm_sets.spt +1 -1
@@ -28,7 +28,7 @@ # # 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 }') #
Quoted 11 lines · Christopher J. PeBenito
Quoted 10 lines · Christopher J. PeBenito
Quoted 9 lines · Daniel J Walsh
Quoted 7 lines · Christopher J. PeBenito
Quoted 1 line · Daniel J Walsh
cups needs to be able to create socket to itself.
This needs more investigation; we need to find out more about this generic socket so we can add a specific class for it.
Quoted 5 lines
Quoted 3 lines
http://www.redhat.com/archives/fedora-selinux-list/2006-April/msg00216.html
So it appears that a class for appletalk sockets needs to be added.
How about the attached patches?
Perhaps permissions should be added to netif for appletalk send/receive too, so it doesn't fall through to rawip send/receive?
Signature · 9 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.
Quoted 12 lines · Christopher J. PeBenito
Quoted 11 lines · Christopher J. PeBenito
Quoted 10 lines · Christopher J. PeBenito
Quoted 9 lines · Daniel J Walsh
Quoted 7 lines · Christopher J. PeBenito
Quoted 1 line · Daniel J Walsh
cups needs to be able to create socket to itself.
This needs more investigation; we need to find out more about this generic socket so we can add a specific class for it.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
http://www.redhat.com/archives/fedora-selinux-list/2006-April/msg00216.html
So it appears that a class for appletalk sockets needs to be added.
How about the attached patches?
Perhaps permissions should be added to netif for appletalk send/receive too, so it doesn't fall through to rawip send/receive?
netif checks are going away altogether.
Signature · 8 lines
Stephen Smalley National Security Agency -- 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.