Bug 838810 - can't run irssi with staff_u
can't run irssi with staff_u
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy (Show other bugs)
Unspecified Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Daniel Walsh
BaseOS QE Security Team
Depends On:
  Show dependency treegraph
Reported: 2012-07-10 04:15 EDT by Petr Lautrbach
Modified: 2012-07-10 04:55 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-10 04:55:37 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Petr Lautrbach 2012-07-10 04:15:59 EDT
Description of problem:
$ irssi
** (irssi:12107): ERROR **: Couldn't create /home/brq/plautrba/.irssi directory                                                                                                      
Trace/breakpoint trap                

$ ls -lZd . .irssi
drwxr-xr-x. plautrba plautrba staff_u:object_r:user_home_t:s0  .                                                                                                                     
drwx------. plautrba plautrba staff_u:object_r:user_home_t:s0  .irssi                                            
$ id -Z

Version-Release number of selected component (if applicable):

How reproducible:

Actual results:
with 'setenforce 0' and 'semanage dontaudit off':

# ausearch -m avc -ts 10:07:20 | audit2allow 
WARNING: Policy would be downgraded from version 27 to 26.
WARNING: Policy would be downgraded from version 27 to 26.

#============= irssi_t ==============
allow irssi_t user_home_t:dir { read getattr open };
#!!!! The source type 'irssi_t' can write to a 'file' of the following type:
# irssi_home_t

allow irssi_t user_home_t:file { read lock ioctl write open };

#============= staff_t ==============
allow staff_t irssi_t:process { siginh noatsecure rlimitinh };
Comment 1 Petr Lautrbach 2012-07-10 04:55:09 EDT
I forgot to set up equivalence /home/brq to /home. Sorry for the noise.

Note You need to log in before you can comment on or make changes to this bug.