latest hald policy patch
Subsystems (2)
This one differs from the last in one line.
A recent patch we discussed (and I believe came to agreement on) was to change the file_contexts to label /dev/hdX as removable_device_t if it refers to a CD-ROM or DVD. This means of course that hald needs to be able to read removable_device_t.
Apart from this it's the same as the last patch I sent.
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
program/unused/hald.te renamed from usr/src/se/policy/domains/program/unused/hald.te +12 -5
@@ -10,14 +10,15 @@ # # hald_exec_t is the type of the hald executable. # -daemon_domain(hald, `, dbus_client_domain') +daemon_domain(hald, `, dbus_client_domain, fs_domain') -allow hald_t etc_t:file { getattr read }; -allow hald_t self:{ unix_dgram_socket unix_stream_socket } create_stream_socket_perms; +allow hald_t { etc_t etc_runtime_t }:file { getattr read }; +allow hald_t self:unix_stream_socket create_stream_socket_perms; +allow hald_t self:unix_dgram_socket create_socket_perms; allow hald_t dbusd_t:dbus { acquire_svc }; -allow hald_t self:file { getattr read }; +allow hald_t { self proc_t }:file { getattr read }; allow hald_t { bin_t sbin_t }:dir search; allow hald_t hald_t:fifo_file rw_file_perms;
@@ -28,8 +29,14 @@ allow hald_t self:capability { net_admin sys_admin }; can_network(hald_t) +allow hald_t { fixed_disk_device_t removable_device_t }:blk_file { getattr read ioctl }; +allow hald_t event_device_t:chr_file { getattr read }; + ifdef(`updfstab.te', `domain_auto_trans(hald_t, updfstab_exec_t, updfstab_t)') -ifdef(`udev.te', `domain_auto_trans(hald_t, udev_exec_t, udev_t)') +ifdef(`udev.te', ` +domain_auto_trans(hald_t, udev_exec_t, udev_t) +allow udev_t hald_t:unix_dgram_socket sendto; +') allow hald_t usbdevfs_t:dir search; allow hald_t usbdevfs_t:file { getattr read };
Merged.
Quoted 8 lines · Russell Coker
This one differs from the last in one line.
A recent patch we discussed (and I believe came to agreement on) was to change the
file_contextsto label/dev/hdXasremovable_device_tif it refers to a CD-ROM or DVD. This means of course that hald needs to be able to readremovable_device_t.Apart from this it's the same as the last patch I sent.
Signature · 7 lines
James Carter <[email protected]> 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.