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 615200 - sesearch section of 5.12. Information Gathering Tools contains an error
Summary: sesearch section of 5.12. Information Gathering Tools contains an error
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: doc-SELinux_User_Guide
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Scott Radvan
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks: 547585
TreeView+ depends on / blocked
 
Reported: 2010-07-16 06:51 UTC by Milos Malik
Modified: 2015-04-07 03:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-19 04:02:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Milos Malik 2010-07-16 06:51:23 UTC
Description of problem:
The 1. sesearch command contains a string "\ " before /etc/selinux/targeted/policy/policy.24, which leads to an error message, because sesearch tries to find " /etc/selinux/targeted/policy/policy.24" file (which does not exist) instead of "/etc/selinux/targeted/policy/policy.24" file (which does exist). The solution is to delete the string "\ ".

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


How reproducible:
always

Steps to Reproduce:
run the 1. command showed in sesearch section of 5.12. Information Gathering Tools
  
Actual results:
# sesearch --role_allow -t httpd_sys_content_t \ /etc/selinux/targeted/policy/policy.24 
ERROR: Unable to open policy  /etc/selinux/targeted/policy/policy.24.
ERROR: No such file or directory

Expected results:
# sesearch --role_allow -t httpd_sys_content_t /etc/selinux/targeted/policy/policy.24 
Found 20 role allow rules:
   allow system_r sysadm_r;
   allow sysadm_r system_r;
   allow sysadm_r staff_r;
   allow sysadm_r user_r;
   allow system_r git_shell_r;
   allow system_r guest_r;
   allow logadm_r system_r;
   allow system_r logadm_r;
   allow system_r nx_server_r;
   allow system_r staff_r;
   allow staff_r logadm_r;
   allow staff_r sysadm_r;
   allow staff_r unconfined_r;
   allow staff_r webadm_r;
   allow unconfined_r system_r;
   allow system_r unconfined_r;
   allow system_r user_r;
   allow webadm_r system_r;
   allow system_r webadm_r;
   allow system_r xguest_r;

Comment 3 Scott Radvan 2010-07-19 04:02:35 UTC
the \ character shows that the command continues on the second line; however, there was an extra space in there that caused your error, which I could reproduce. I've removed this space now, and copying/pasting directly from the guide now runs the command as expected. this change will appear on the next publish. thanks!


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