Bug 217369 - checkmodule 'syntax error' when given module name with a dash (from audit2allow)
checkmodule 'syntax error' when given module name with a dash (from audit2allow)
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: policycoreutils (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-27 10:36 EST by Will Woods
Modified: 2008-01-21 10:42 EST (History)
1 user (show)

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-21 10:42:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Will Woods 2006-11-27 10:36:25 EST
[root@metroid local]# rpm -qf $(which audit2allow)
policycoreutils-1.33.2-2.fc6

[root@metroid local]# grep nethack /var/log/audit/audit.log | tail -n1  |
audit2allow -M nethack-prelink
Generating type enforcment file: nethack-prelink.te
Compiling policy
checkmodule -M -m -o nethack-prelink.mod nethack-prelink.te
/usr/bin/audit2allow: (unknown source)::ERROR 'syntax error' at token
'nethack-prelink' on line 1:


checkmodule:  error(s) encountered while parsing configuration
checkmodule:  loading policy configuration from nethack-prelink.te

Using "nethack_prelink" instead works fine.

A more useful error message for checkmodule would suggest using a different
filename. Also, audit2allow should probably refuse to create a module with a
dash in the name.
Comment 1 Daniel Walsh 2006-11-27 13:41:32 EST
I have changed audit2allow to generate an error on an invalid module name.

Fixed in policycoreutils-1.33.4-2.fc6

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