Re: Running hpacucli from snmpd blocked by SElinux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/17/2013 12:11 PM, Michael Ludvig wrote:
On 17/04/13 19:42, Michal Trunecka wrote:
>  # restorecon -Rv /usr/sbin
~/hpacucli-selinux # restorecon -Rv /usr/sbin/
restorecon reset /usr/sbin/hpacucli context
system_u:object_r:bin_t:s0->system_u:object_r:hpacucli_exec_t:s0
restorecon set context
/usr/sbin/hpacucli->system_u:object_r:hpacucli_exec_t:s0
failed:'Permission denied'

Why permission denied? I'm running it as root. Is it because
/usr/sbin/hpacucli is a bash script?

Ok, I forgot one thing, just add following line into .te file:

files_type(hpacucli_exec_t)

M.
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux