Skip to contentSkip to conversation

acpid.socket

DISCUSSION Justin Mattock 2 participants 2 messages Dec 19, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hello im wanting to know if there is somebody else who has experienced this problem; when in enforcing mode from /etc/selinux/config. A system reboot then reports
a unable to connect to socket acpid.socket permissions denied. I've noticed the label gives me system_u:object_r:tmpfs_t then after restorecon acpid.socket I receive
system_u:object_r:apmd_run_run_t .
Any info would be helpful,
regards;
--Justin P. Mattock

#1 lore raw
Quoted 8 lines · Justin Mattock

Hello im wanting to know if there is somebody else who has experienced this problem; when in enforcing mode from /etc/selinux/config. A system reboot then reports
a unable to connect to socket acpid.socket permissions denied. I've noticed the label gives me system_u:object_r:tmpfs_t then after restorecon acpid.socket I receive system_u:object_r:apmd_run_run_t .
Any info would be helpful,

Is /var/run a tmpfs mount on your system?

That would explain why it defaults to tmpfs_t. You'd need to mount it with a rootcontext= mount option or restorecon it after mounting to give it the correct type.

In Fedora, there is a similar issue with the tmpfs mount for /dev, since it is initially populated before policy is loaded, so they do a restorecon -R /dev from rc.sysinit. You might have to do that for /var/run too. Has to occur _after_ you've loaded policy, of course.

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.