| /security/apparmor/ |
| A D | Makefile | 106 $(call cmd,make-caps) 109 $(call cmd,make-rlim) 113 $(call cmd,make-af) 114 $(call cmd,make-sock)
|
| A D | af_unix.c | 140 char cmd, struct aa_perms **p, in match_to_cmd() argument 147 state = aa_dfa_match_len(policy->dfa, state, &cmd, 1); in match_to_cmd()
|
| A D | lsm.c | 551 static int apparmor_file_lock(struct file *file, unsigned int cmd) in apparmor_file_lock() argument 555 if (cmd == F_WRLCK) in apparmor_file_lock()
|
| /security/landlock/ |
| A D | fs.c | 127 switch (cmd) { in is_masked_device_ioctl() 220 is_masked_device_ioctl_compat(const unsigned int cmd) in is_masked_device_ioctl_compat() argument 222 switch (cmd) { in is_masked_device_ioctl_compat() 248 return is_masked_device_ioctl(cmd); in is_masked_device_ioctl_compat() 1722 const unsigned int cmd, const bool is_compat) in hook_file_ioctl_common() argument 1738 if (unlikely(is_compat) ? is_masked_device_ioctl_compat(cmd) : in hook_file_ioctl_common() 1739 is_masked_device_ioctl(cmd)) in hook_file_ioctl_common() 1748 .cmd = cmd, in hook_file_ioctl_common() 1760 static int hook_file_ioctl(struct file *file, unsigned int cmd, in hook_file_ioctl() argument 1763 return hook_file_ioctl_common(file, cmd, false); in hook_file_ioctl() [all …]
|
| /security/tomoyo/ |
| A D | tomoyo.c | 312 static int tomoyo_file_fcntl(struct file *file, unsigned int cmd, in tomoyo_file_fcntl() argument 315 if (!(cmd == F_SETFL && ((arg ^ file->f_flags) & O_APPEND))) in tomoyo_file_fcntl() 347 static int tomoyo_file_ioctl(struct file *file, unsigned int cmd, in tomoyo_file_ioctl() argument 350 return tomoyo_path_number_perm(TOMOYO_TYPE_IOCTL, &file->f_path, cmd); in tomoyo_file_ioctl()
|
| /security/ |
| A D | security.c | 2943 return call_int_hook(file_ioctl, file, cmd, arg); in security_file_ioctl() 2961 return call_int_hook(file_ioctl_compat, file, cmd, arg); in security_file_ioctl_compat() 3055 int security_file_lock(struct file *file, unsigned int cmd) in security_file_lock() argument 3057 return call_int_hook(file_lock, file, cmd); in security_file_lock() 3076 return call_int_hook(file_fcntl, file, cmd, arg); in security_file_fcntl() 3890 return call_int_hook(msg_queue_msgctl, msq, cmd); in security_msg_queue_msgctl() 3992 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in security_shm_shmctl() argument 3994 return call_int_hook(shm_shmctl, shp, cmd); in security_shm_shmctl() 4077 return call_int_hook(sem_semctl, sma, cmd); in security_sem_semctl() 5670 return call_int_hook(bpf, cmd, attr, size, kernel); in security_bpf() [all …]
|
| A D | lsm_audit.c | 234 audit_log_format(ab, " ioctlcmd=0x%hx", a->u.op->cmd); in audit_log_lsm_data()
|
| /security/loadpin/ |
| A D | loadpin.c | 385 static long dm_verity_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in dm_verity_ioctl() argument 390 switch (cmd) { in dm_verity_ioctl()
|
| /security/selinux/ |
| A D | hooks.c | 3815 u8 driver = cmd >> 8; in ioctl_has_perm() 3816 u8 xperm = cmd & 0xff; in ioctl_has_perm() 3820 ad.u.op->cmd = cmd; in ioctl_has_perm() 3848 switch (cmd) { in selinux_file_ioctl() 3896 switch (cmd) { in selinux_file_ioctl_compat() 3898 cmd = FS_IOC_GETFLAGS; in selinux_file_ioctl_compat() 4046 switch (cmd) { in selinux_file_fcntl() 6235 switch (cmd) { in selinux_msg_queue_msgctl() 6363 switch (cmd) { in selinux_shm_shmctl() 6442 switch (cmd) { in selinux_sem_semctl() [all …]
|
| /security/keys/trusted-keys/ |
| A D | trusted_tpm1.c | 357 int trusted_tpm_send(unsigned char *cmd, size_t buflen) in trusted_tpm_send() argument 371 buf.data = cmd; in trusted_tpm_send() 372 dump_tpm_buf(cmd); in trusted_tpm_send() 374 dump_tpm_buf(cmd); in trusted_tpm_send()
|
| /security/smack/ |
| A D | smack_lsm.c | 1689 static int smack_file_ioctl(struct file *file, unsigned int cmd, in smack_file_ioctl() argument 1702 if (_IOC_DIR(cmd) & _IOC_WRITE) { in smack_file_ioctl() 1707 if (rc == 0 && (_IOC_DIR(cmd) & _IOC_READ)) { in smack_file_ioctl() 1722 static int smack_file_lock(struct file *file, unsigned int cmd) in smack_file_lock() argument 1750 static int smack_file_fcntl(struct file *file, unsigned int cmd, in smack_file_fcntl() argument 1760 switch (cmd) { in smack_file_fcntl() 3168 static int smack_shm_shmctl(struct kern_ipc_perm *isp, int cmd) in smack_shm_shmctl() argument 3172 switch (cmd) { in smack_shm_shmctl() 3257 static int smack_sem_semctl(struct kern_ipc_perm *isp, int cmd) in smack_sem_semctl() argument 3261 switch (cmd) { in smack_sem_semctl() [all …]
|