On Fri, Sep 27, 2019 at 09:55:07AM +0200, Dominick Grift wrote: > sudo does not reset the role of my tty properly [1], and i was wondering if anyone is able to determine what is causing this [2] > > [1] https://bugzilla.sudo.ws/show_bug.cgi?id=898 > [2] https://www.sudo.ws/repos/sudo/file/tip/src/selinux.c Does fgetfilecon() get the context from the actual path or does it get it from file_contexts? If it does the latter then i guess that would explain it as pty/tty contexts are customizable and thus have no entry in file_contexts: # matchpathcon /dev/pts/0 /dev/pts/0 <<none>> In that case i guess it skips the relabel? > > -- > Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02 > https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02 > Dominick Grift -- Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02 https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02 Dominick Grift
Attachment:
signature.asc
Description: PGP signature