From: Daniel J Walsh <dwalsh@redhat.com>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>,
SE Linux <selinux@tycho.nsa.gov>
Subject: Additional fixes for consolekit.
Date: Thu, 19 Apr 2007 10:53:13 -0400 [thread overview]
Message-ID: <46278259.9080509@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
Consolekit when started via startx needs additional privs.
Consolekit read users terminals to see who is logged in.
It also reads the .Xauthority file.
[-- Attachment #2: consolekit.patch --]
[-- Type: text/x-patch, Size: 2453 bytes --]
--- nsaserefpolicy/policy/modules/services/consolekit.te 2007-04-11 16:04:02.000000000 -0400
+++ serefpolicy-2.5.12/policy/modules/services/consolekit.te 2007-04-18 15:27:17.000000000 -0400
@@ -19,14 +19,13 @@
# consolekit local policy
#
-allow consolekit_t self:capability { sys_tty_config dac_override sys_nice sys_ptrace };
+allow consolekit_t self:capability { setuid setgid sys_tty_config dac_override sys_nice sys_ptrace };
allow consolekit_t self:process { getsched signal };
allow consolekit_t self:fifo_file rw_fifo_file_perms;
allow consolekit_t self:unix_stream_socket create_stream_socket_perms;
+allow consolekit_t self:unix_dgram_socket create_socket_perms;
-# pid file
-manage_files_pattern(consolekit_t,consolekit_var_run_t,consolekit_var_run_t)
-files_pid_filetrans(consolekit_t,consolekit_var_run_t, file)
+corecmd_exec_bin(consolekit_t)
dev_read_urand(consolekit_t)
dev_read_sysfs(consolekit_t)
@@ -38,18 +37,32 @@
# needs to read /var/lib/dbus/machine-id
files_read_var_lib_files(consolekit_t)
-term_use_console(consolekit_t)
+fs_list_inotifyfs(consolekit_t)
+
+kernel_read_system_state(consolekit_t)
libs_use_ld_so(consolekit_t)
libs_use_shared_libs(consolekit_t)
miscfiles_read_localization(consolekit_t)
+term_use_all_terms(consolekit_t)
+
+manage_files_pattern(consolekit_t,consolekit_var_run_t,consolekit_var_run_t)
+files_pid_filetrans(consolekit_t,consolekit_var_run_t, file)
+
ifdef(`targeted_policy',`
- term_dontaudit_use_unallocated_ttys(consolekit_t)
- term_dontaudit_use_generic_ptys(consolekit_t)
+ term_use_unallocated_ttys(consolekit_t)
+ term_use_generic_ptys(consolekit_t)
+ #reading .Xauthity
+ userdom_read_generic_user_home_content_files(consolekit_t)
')
+# Init script handling
+
+domain_ptrace_all_domains(consolekit_t)
+mcs_ptrace_all(consolekit_t)
+
optional_policy(`
dbus_system_bus_client_template(consolekit, consolekit_t)
dbus_send_system_bus(consolekit_t)
@@ -61,3 +74,7 @@
unconfined_dbus_chat(consolekit_t)
')
')
+
+optional_policy(`
+ xserver_stream_connect_xdm_xserver(consolekit_t)
+')
--- nsaserefpolicy/policy/modules/system/locallogin.te 2007-03-26 10:39:07.000000000 -0400
+++ serefpolicy-2.5.12/policy/modules/system/locallogin.te 2007-04-11 17:07:34.000000000 -0400
@@ -162,6 +165,10 @@
')
optional_policy(`
+ consolekit_dbus_chat(local_login_t)
+')
+
+optional_policy(`
gpm_getattr_gpmctl(local_login_t)
gpm_setattr_gpmctl(local_login_t)
')
next reply other threads:[~2007-04-19 14:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-19 14:53 Daniel J Walsh [this message]
2007-05-03 14:11 ` Additional fixes for consolekit Christopher J. PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46278259.9080509@redhat.com \
--to=dwalsh@redhat.com \
--cc=cpebenito@tresys.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.