mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-03-05 01:38:44 +00:00

Some teminal emulators (like the latest version of gnome-terminal) are not setting entries in the utmp file, this leads getlogin() to return an empty string. Fallback to the name of the user running the chcat process.