selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* machinectl shell policy
@ 2020-12-23 22:18 Russell Coker
  2020-12-24  8:37 ` Dominick Grift
  0 siblings, 1 reply; 10+ messages in thread
From: Russell Coker @ 2020-12-23 22:18 UTC (permalink / raw)
  To: selinux-refpolicy

allow sysadm_t systemd_machined_t:dbus send_msg;
systemd_manage_userdb_runtime_dirs(systemd_machined_t)
systemd_manage_userdb_runtime_sock_files(systemd_machined_t)
term_use_ptmx(systemd_machined_t)
dev_getattr_fs(systemd_machined_t)
term_getattr_pty_fs(systemd_machined_t)

To enable "machinectl shell" on recent versions of systemd we need something 
like the above policy (which is not complete or ideal, still doesn't work so 
no point polishing it) and something for the below.  What is the below about?

type=USER_AVC msg=audit(1608759091.934:1799): pid=324 uid=108 auid=4294967295 
ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  
denied  { 0x2 } for msgtype=error 
error_name=org.freedesktop.DBus.Error.FileNotFound dest=:1.18 spid=2642 
tpid=2706 scontext=system_u:system_r:systemd_machined_t:s0 
tcontext=bofh:sysadm_r:sysadm_t:s0-s0:c0.c1023 tclass=(null) permissive=0  
exe="/usr/bin/dbus-daemon" sauid=108 hostname=? addr=? 
terminal=?'UID="messagebus" AUID="unset" SAUID="messagebus"


-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-04 15:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 22:18 machinectl shell policy Russell Coker
2020-12-24  8:37 ` Dominick Grift
2020-12-25  5:12   ` Russell Coker
2020-12-25  7:58     ` Dominick Grift
2020-12-25  9:16       ` Russell Coker
2020-12-25 11:37         ` Dominick Grift
2021-01-04 14:48         ` Chris PeBenito
2021-01-04 15:00           ` Dominick Grift
2021-01-04 15:06             ` Dominick Grift
2021-01-04 15:13               ` Dominick Grift

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).