Skip to contentSkip to conversation

local_login_t and btmp

PATCH Russell Coker 1 participant 1 message Jun 23, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

The attached patch allows /bin/login to lock the /var/log/btmp file before writing to it.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
program/login.te renamed from program/login.te.orig +1 -1
@@ -111,7 +111,7 @@
 allow $1_login_t lastlog_t:file rw_file_perms;
 
 # Write to /var/log/btmp
-allow $1_login_t faillog_t:file { append read write };
+allow $1_login_t faillog_t:file { lock append read write };
 
 # Search for mail spool file.
 allow $1_login_t mail_spool_t:dir r_dir_perms;