Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lircd: Fix new drop-root-permissions denials (v2) #41

Merged
merged 2 commits into from
Nov 10, 2015
Merged

lircd: Fix new drop-root-permissions denials (v2) #41

merged 2 commits into from
Nov 10, 2015

Conversation

leamas
Copy link

@leamas leamas commented Sep 29, 2015

New try: Add some new permission needed for new code dropping root privileges using setuid()

@@ -40,6 +40,8 @@ dev_filetrans(lircd_t, lircd_var_run_t, sock_file)

kernel_request_load_module(lircd_t)

auth_read_passwd(lircd_t)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are OK. We just need to follow StyleGuide. See

https://github.com/TresysTechnology/refpolicy/wiki/StyleGuide

and Local policy rules section. It means you need to call

     auth_read_passwd(lircd_t)

after

    term_use_unallocated_ttys(lircd_t)

Thank you.

mgrepl added a commit that referenced this pull request Nov 10, 2015
lircd: Fix new drop-root-permissions denials (v2)
@mgrepl mgrepl merged commit 7a06e00 into fedora-selinux:rawhide-contrib Nov 10, 2015
tmcneal pushed a commit to tmcneal/lirc that referenced this pull request Sep 9, 2017
Lets make an upstream policy patch instead:
fedora-selinux/selinux-policy#41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants