2008-12-10 19:38:10 +00:00
|
|
|
policy_module(lockdev, 1.3.0)
|
2006-01-11 20:18:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
type lockdev_t;
|
2006-01-11 20:18:56 +00:00
|
|
|
type lockdev_exec_t;
|
2008-11-05 16:10:46 +00:00
|
|
|
typealias lockdev_t alias { user_lockdev_t staff_lockdev_t sysadm_lockdev_t };
|
|
|
|
typealias lockdev_t alias { auditadm_lockdev_t secadm_lockdev_t };
|
|
|
|
application_domain(lockdev_t, lockdev_exec_t)
|
|
|
|
ubac_constrained(lockdev_t)
|
|
|
|
|
|
|
|
type lockdev_lock_t;
|
|
|
|
typealias lockdev_lock_t alias { user_lockdev_lock_t staff_lockdev_lock_t sysadm_lockdev_lock_t };
|
|
|
|
typealias lockdev_lock_t alias { auditadm_lockdev_lock_t secadm_lockdev_lock_t };
|
|
|
|
files_lock_file(lockdev_lock_t)
|
|
|
|
ubac_constrained(lockdev_lock_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
# Use capabilities.
|
|
|
|
allow lockdev_t self:capability setgid;
|
|
|
|
|
|
|
|
allow lockdev_t lockdev_lock_t:file manage_file_perms;
|
|
|
|
files_lock_filetrans(lockdev_t, lockdev_lock_t, file)
|
|
|
|
|
|
|
|
files_read_all_locks(lockdev_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(lockdev_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(lockdev_t)
|
|
|
|
|
|
|
|
userdom_use_user_terminals(lockdev_t)
|
|
|
|
|