RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 838810 - can't run irssi with staff_u
Summary: can't run irssi with staff_u
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.0
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-10 08:15 UTC by Petr Lautrbach
Modified: 2012-07-10 08:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-10 08:55:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Lautrbach 2012-07-10 08:15:59 UTC
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
staff_u:staff_r:staff_t:s0-s0:c0.c1023                   


Version-Release number of selected component (if applicable):
selinux-policy-3.10.0-137.el7.noarch
irssi-0.8.15-8.el7.x86_64


How reproducible:
Always

 
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 08:55:09 UTC
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.