Chris PeBenito 17ec8c
policy_module(lockdev, 1.3.0)
Chris PeBenito 1ae2c3
Chris PeBenito 1ae2c3
########################################
Chris PeBenito 1ae2c3
#
Chris PeBenito 1ae2c3
# Declarations
Chris PeBenito 1ae2c3
#
Chris PeBenito 1ae2c3
Chris PeBenito 296273
type lockdev_t;
Chris PeBenito 1ae2c3
type lockdev_exec_t;
Chris PeBenito 296273
typealias lockdev_t alias { user_lockdev_t staff_lockdev_t sysadm_lockdev_t };
Chris PeBenito 296273
typealias lockdev_t alias { auditadm_lockdev_t secadm_lockdev_t };
Chris PeBenito 296273
application_domain(lockdev_t, lockdev_exec_t)
Chris PeBenito 296273
ubac_constrained(lockdev_t)
Chris PeBenito 296273
Chris PeBenito 296273
type lockdev_lock_t;
Chris PeBenito 296273
typealias lockdev_lock_t alias { user_lockdev_lock_t staff_lockdev_lock_t sysadm_lockdev_lock_t };
Chris PeBenito 296273
typealias lockdev_lock_t alias { auditadm_lockdev_lock_t secadm_lockdev_lock_t };
Chris PeBenito 296273
files_lock_file(lockdev_lock_t)
Chris PeBenito 296273
ubac_constrained(lockdev_lock_t)
Chris PeBenito 296273
Chris PeBenito 296273
########################################
Chris PeBenito 296273
#
Chris PeBenito 296273
# Local policy
Chris PeBenito 296273
#
Chris PeBenito 296273
Chris PeBenito 296273
# Use capabilities.
Chris PeBenito 296273
allow lockdev_t self:capability setgid;
Chris PeBenito 296273
Chris PeBenito 296273
allow lockdev_t lockdev_lock_t:file manage_file_perms;
Chris PeBenito 296273
files_lock_filetrans(lockdev_t, lockdev_lock_t, file)
Chris PeBenito 296273
Chris PeBenito 296273
files_read_all_locks(lockdev_t)
Chris PeBenito 296273
Chris PeBenito 296273
fs_getattr_xattr_fs(lockdev_t)
Chris PeBenito 296273
Chris PeBenito 296273
logging_send_syslog_msg(lockdev_t)
Chris PeBenito 296273
Chris PeBenito 296273
userdom_use_user_terminals(lockdev_t)
Chris PeBenito 296273