Skip to contentSkip to conversation

New domain for podsleuth

DISCUSSION Christopher J. PeBenito 2 participants 2 messages May 26, 2008 – May 27, 2008 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

Review

Quoted 5 lines · Daniel J Walsh
(quoted diff) +5 -0
+hal_dbus_chat(podsleuth_t)
+
+optional_policy(`
+	dbus_system_bus_client_template(podsleuth,podsleuth_t)
+')

Seems that either the hal dbus should go in the optional or dbus should become unconditional. My guess is unconditional(?)

Review

Quoted 5 lines
(quoted diff) +5 -0
+gen_require(`
+	type hald_t;
+')
+
+podsleuth_domtrans(hald_t)

:(

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.
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christopher J. PeBenito wrote:

| On Mon, 2008-05-19 at 13:11 -0400, Daniel J Walsh wrote:
|> +hal_dbus_chat(podsleuth_t)
|> +
|> +optional_policy(`
|> +	dbus_system_bus_client_template(podsleuth,podsleuth_t)
|> +')
|
| Seems that either the hal dbus should go in the optional or dbus should
| become unconditional.  My guess is unconditional(?)
|
|> +gen_require(`
|> +	type hald_t;
|> +')
|> +
|> +podsleuth_domtrans(hald_t)
|
| :(
|

Update podsleuth patch along with patch for hal and policykit to make it all work.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkg79mMACgkQrlYvE4MpobO95QCgiXA/qYDugExn2o4HpNguslxJ t3QAn1VVacDYJCGOTmOWk8b/B7/B3DZD
=TbJq
-----END PGP SIGNATURE-----

Subject: [PATCH] refpolicy: services_hal changes
--text follows this line--

policy/modules/services/hal.fc +6 -2
@@ -8,6 +8,7 @@
 /usr/libexec/hal-hotplug-map 		--	gen_context(system_u:object_r:hald_exec_t,s0)
 /usr/libexec/hal-system-sonypic	 	--	gen_context(system_u:object_r:hald_sonypic_exec_t,s0)
 /usr/libexec/hald-addon-macbookpro-backlight --	gen_context(system_u:object_r:hald_mac_exec_t,s0)
+/usr/libexec/hald-addon-macbook-backlight --	gen_context(system_u:object_r:hald_mac_exec_t,s0)
 
 /usr/sbin/hald		--			gen_context(system_u:object_r:hald_exec_t,s0)
 
@@ -16,10 +17,13 @@
 /var/lib/hal(/.*)?				gen_context(system_u:object_r:hald_var_lib_t,s0)
 
 /var/log/pm-suspend\.log			gen_context(system_u:object_r:hald_log_t,s0)
+/var/log/pm(/.*)?				gen_context(system_u:object_r:hald_log_t,s0)
 
+/var/run/pm(/.*)?				gen_context(system_u:object_r:hald_var_run_t,s0)
+/var/run/pm-utils(/.*)?				gen_context(system_u:object_r:hald_var_run_t,s0)
+/var/run/hald(/.*)?				gen_context(system_u:object_r:hald_var_run_t,s0)
 /var/run/haldaemon\.pid	--	 		gen_context(system_u:object_r:hald_var_run_t,s0)
-/var/run/vbestate 	--			gen_context(system_u:object_r:hald_var_run_t,s0)
-
+/var/run/vbe.*	 	--			gen_context(system_u:object_r:hald_var_run_t,s0)
 ifdef(`distro_gentoo',`
 /var/lib/cache/hald(/.*)?			gen_context(system_u:object_r:hald_cache_t,s0)
 ')
policy/modules/services/hal.if +40 -1

50 lines not on this page · raw message

policy/modules/services/hal.te +46 -4

145 lines not on this page · raw message

Subject: [PATCH] refpolicy: services_podsleuth changes --text follows this line--

policy/modules/services/podsleuth.fc +2 -0
@@ -0,0 +1,2 @@
+
+/usr/bin/podsleuth	--	gen_context(system_u:object_r:podsleuth_exec_t,s0)
policy/modules/services/podsleuth.if +54 -0

54 lines not on this page · raw message

policy/modules/services/podsleuth.te +37 -0
@@ -0,0 +1,37 @@
+policy_module(podsleuth,1.0.0)
+
+########################################
+#
+# Declarations
+#
+
+type podsleuth_t;
+type podsleuth_exec_t;
+application_domain(podsleuth_t, podsleuth_exec_t)
+role system_r types podsleuth_t;
+
+########################################
+#
+# podsleuth local policy
+#
+allow podsleuth_t self:process { ptrace signal getsched execheap execmem };
+
+## internal communication is often done using fifo and unix sockets.
+allow podsleuth_t self:fifo_file rw_file_perms;
+allow podsleuth_t self:unix_stream_socket create_stream_socket_perms;
+
+dev_read_urand(podsleuth_t)
+
+kernel_read_system_state(podsleuth_t)
+
+files_read_etc_files(podsleuth_t)
+
+libs_use_ld_so(podsleuth_t)
+libs_use_shared_libs(podsleuth_t)
+
+miscfiles_read_localization(podsleuth_t)
+
+mono_exec(podsleuth_t)
+
+hal_dbus_chat(podsleuth_t)
+dbus_system_bus_client_template(podsleuth,podsleuth_t)

Subject: [PATCH] refpolicy: services_polkit changes --text follows this line--

policy/modules/services/polkit.fc +9 -0
@@ -0,0 +1,9 @@
+
+/usr/libexec/polkit-read-auth-helper	--	gen_context(system_u:object_r:polkit_auth_exec_t,s0)
+/usr/libexec/polkit-grant-helper.*	--	gen_context(system_u:object_r:polkit_grant_exec_t,s0)
+/usr/libexec/polkit-resolve-exe-helper.* --	gen_context(system_u:object_r:polkit_resolve_exec_t,s0)
+/usr/libexec/polkitd			--	gen_context(system_u:object_r:polkit_exec_t,s0)
+
+/var/lib/PolicyKit(/.*)?			gen_context(system_u:object_r:polkit_var_lib_t,s0)
+/var/run/PolicyKit(/.*)?			gen_context(system_u:object_r:polkit_var_run_t,s0)
+/var/lib/PolicyKit-public(/.*)?			gen_context(system_u:object_r:polkit_var_lib_t,s0)
policy/modules/services/polkit.if +208 -0

208 lines not on this page · raw message

policy/modules/services/polkit.te +195 -0

195 lines not on this page · raw message