Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1969887 - man audit2allow mistakes building policy
Summary: man audit2allow mistakes building policy
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-09 12:09 UTC by Patrik Koncity
Modified: 2021-06-09 12:09 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Patrik Koncity 2021-06-09 12:09:39 UTC
Description of problem:

When you open man audi2allow and look into part "Using audit2allow to generate module policy using reference policy" the example of .te policy is wrong.
  

policy_module(local, 1.0)

       gen_require(`
               type myapp_t;
               type etc_t;
        };

       files_read_etc_files(myapp_t)
       

Especially part with requirements, in this example are using a wrong pair of brackets. When you try to build policy with this example you are not able to build policy with this module.

# make -f /usr/share/selinux/devel/Makefile local.pp

Compiling targeted local module
m4:local.te:3: ERROR: end of file in string
make: *** [/usr/share/selinux/devel/include/Makefile:156: tmp/local.mod] Error 1


Version-Release number of selected component (if applicable):
policycoreutils-3.1-4.fc33.src.rpm
selinux-policy-devel-3.14.6-37.fc33.noarch


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