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 1722836 - ERROR 'syntax error' at token 'speech-dispatcher_admin'
Summary: ERROR 'syntax error' at token 'speech-dispatcher_admin'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.1
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-21 12:50 UTC by Milos Malik
Modified: 2020-11-14 09:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1722622
Environment:
Last Closed: 2019-11-05 22:11:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3547 0 None None None 2019-11-05 22:11:59 UTC

Description Milos Malik 2019-06-21 12:50:57 UTC
Description of problem:
I believe the '-' character causing the problems.
What if '-' was replaced by '_' in all speech* types?

# seinfo -t | grep speech
   speech-dispatcher_exec_t
   speech-dispatcher_home_t
   speech-dispatcher_log_t
   speech-dispatcher_t
   speech-dispatcher_tmp_t
   speech-dispatcher_tmpfs_t
   speech-dispatcher_unit_file_t
   speech_client_packet_t
   speech_port_t
   speech_server_packet_t
#

Version-Release number of selected component (if applicable):
selinux-policy-3.14.3-8.el8.noarch
selinux-policy-targeted-3.14.3-8.el8.noarch
selinux-policy-devel-3.14.3-8.el8.noarch

How reproducible:
 * always

Steps to Reproduce:
1. get a RHEL-8.1 machine (targeted policy is active)

2. prepare the following TE file
# cat confined_admin.te 
policy_module(confined_admin,1.0.0)

userdom_admin_user_template(confined_admin)

require {
    role staff_r;
}

role confined_admin_r;
allow staff_r confined_admin_r;

domain_use_interactive_fds(confined_admin_t)

files_read_etc_files(confined_admin_t)

miscfiles_read_localization(confined_admin_t)

speech-dispatcher_admin(confined_admin_t,confined_admin_r)

3. compile the TE file into a policy module
# make -f /usr/share/selinux/devel/Makefile 
Compiling targeted confined_admin module
confined_admin.te:19:ERROR 'syntax error' at token 'speech-dispatcher_admin' on line 36005:

speech-dispatcher_admin(confined_admin_t,confined_admin_r)
/usr/bin/checkmodule:  error(s) encountered while parsing configuration
make: *** [/usr/share/selinux/devel/include/Makefile:157: tmp/confined_admin.mod] Error 1
#

Actual results:
 * error message appears
 * .pp file is not created

Expected results:
 * the syntax error is corrected
 * .pp file is created

--- Additional comment from Milos Malik on 2019-06-20 20:07:24 UTC ---

Found during the investigation of /CoreOS/selinux-policy/Sanity/confined-admins-and-their-services results.

Comment 13 errata-xmlrpc 2019-11-05 22:11:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3547


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