Skip to content
Snippets Groups Projects
Commit 240f50e8 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

Add TCSETS to unpriv_tty_ioctls

Addresses the following denial:

avc: denied { ioctl } for comm="top" path="/dev/pts/0" dev="devpts"
ino=3 ioctlcmd=5402 scontext=u:r:shell:s0 tcontext=u:object_r:devpts:s0
tclass=chr_file permissive=0

Bug: 33073072
Bug: 7530569
Test: policy compiles.
Change-Id: If9178d29f2295be46bb118df00ebf73a6ebc9f81
parent a040aa12
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,8 @@ define(`unpriv_unix_sock_ioctls', `{ ...@@ -49,8 +49,8 @@ define(`unpriv_unix_sock_ioctls', `{
# commonly used TTY ioctls # commonly used TTY ioctls
# merge with unpriv_unix_sock_ioctls? # merge with unpriv_unix_sock_ioctls?
define(`unpriv_tty_ioctls', `{ define(`unpriv_tty_ioctls', `{
TIOCOUTQ FIOCLEX TCGETS TIOCGWINSZ TIOCSWINSZ TIOCSCTTY TCSETSW TCFLSH TIOCOUTQ FIOCLEX TCGETS TCSETS TIOCGWINSZ TIOCSWINSZ TIOCSCTTY TCSETSW
TIOCSPGRP TIOCGPGRP TCFLSH TIOCSPGRP TIOCGPGRP
}') }')
# point to point ioctls # point to point ioctls
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment