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 1260879 - Setsebool for "ssh_chroot_rw_homedirs" doesn't work across several reboots
Summary: Setsebool for "ssh_chroot_rw_homedirs" doesn't work across several reboots
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: policycoreutils
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Petr Lautrbach
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-08 07:05 UTC by Sushma
Modified: 2015-09-11 13:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-11 13:53:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sushma 2015-09-08 07:05:10 UTC
Description of problem:
The command below when use without "-P" option doesn't work
setsebool -P ssh_chroot_rw_homedirs on


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


How reproducible:
Run the command setsebool -P ssh_chroot_rw_homedirs on (provided ssh_chroot_rw_homedirs is off  )

Steps to Reproduce:
1.set ssh_chroot_rw_homedirs to off
2.Run setsebool -P ssh_chroot_rw_homedirs on
3.Check the status :
sestatus -b | grep ssh_chroot_rw_homedirs
It will be still off.

Actual results:
sestatus -b | grep ssh_chroot_rw_homedirs gives "off" status


Expected results:
sestatus -b | grep ssh_chroot_rw_homedirs should give "on" status

Additional info:

Comment 2 Milos Malik 2015-09-08 08:02:26 UTC
# setsebool -P ssh_chroot_rw_homedirs off
# getsebool ssh_chroot_rw_homedirs
ssh_chroot_rw_homedirs --> off
# sestatus -b | grep ssh_chroot_rw_homedirs
ssh_chroot_rw_homedirs                      off
# semanage boolean -l | grep ssh_chroot_rw_homedirs
ssh_chroot_rw_homedirs         (off  ,  off)  Allow ssh with chroot env to read and write files in the user home directories
# setsebool -P ssh_chroot_rw_homedirs on
# getsebool ssh_chroot_rw_homedirs
ssh_chroot_rw_homedirs --> on
# sestatus -b | grep ssh_chroot_rw_homedirs
ssh_chroot_rw_homedirs                      on
# semanage boolean -l | grep ssh_chroot_rw_homedirs
ssh_chroot_rw_homedirs         (on   ,   on)  Allow ssh with chroot env to read and write files in the user home directories
# 

It works as expected on RHEL-6.7. Which version of policycoreutils do you have?

# rpm -qf `which setsebool`
policycoreutils-2.0.83-24.el6.x86_64
#

Comment 3 Sushma 2015-09-08 08:35:37 UTC
policycoreutils version is :


policycoreutils-2.0.83-19.47.el6.x86_64

Comment 4 Petr Lautrbach 2015-09-11 13:53:22 UTC
I confirm comment 2, it works as expected:


[root@plautrba-rhel-6 ~]# setsebool -P ssh_chroot_rw_homedirs on
[root@plautrba-rhel-6 ~]# sestatus -b | grep ssh_chroot_rw_homedirs
ssh_chroot_rw_homedirs                      on
[root@plautrba-rhel-6 ~]# setsebool -P ssh_chroot_rw_homedirs off
[root@plautrba-rhel-6 ~]# sestatus -b | grep ssh_chroot_rw_homedirs
ssh_chroot_rw_homedirs                      off
[root@plautrba-rhel-6 ~]# rpm -qf /usr/sbin/setsebool 
policycoreutils-2.0.83-19.47.el6_6.1.x86_64



If it doesn't still work for you with he latest updates and can provide another reproducer, feel free to reopen this bug.


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