Lines Matching defs:cmd
3642 * Check whether a task has the ioctl permission and cmd
3646 u32 requested, u16 cmd)
3655 u8 driver = cmd >> 8;
3656 u8 xperm = cmd & 0xff;
3660 ad.u.op->cmd = cmd;
3682 static int selinux_file_ioctl(struct file *file, unsigned int cmd,
3688 switch (cmd) {
3717 error = ioctl_has_perm(cred, file, FILE__IOCTL, (u16) cmd);
3724 error = ioctl_has_perm(cred, file, FILE__IOCTL, (u16) cmd);
3729 static int selinux_file_ioctl_compat(struct file *file, unsigned int cmd,
3736 switch (cmd) {
3738 cmd = FS_IOC_GETFLAGS;
3741 cmd = FS_IOC_SETFLAGS;
3744 cmd = FS_IOC_GETVERSION;
3747 cmd = FS_IOC_SETVERSION;
3753 return selinux_file_ioctl(file, cmd, arg);
3863 static int selinux_file_lock(struct file *file, unsigned int cmd)
3870 static int selinux_file_fcntl(struct file *file, unsigned int cmd,
3876 switch (cmd) {
6026 static int selinux_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd)
6030 switch (cmd) {
6154 static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd)
6158 switch (cmd) {
6232 static int selinux_sem_semctl(struct kern_ipc_perm *sma, int cmd)
6237 switch (cmd) {
6729 static int selinux_bpf(int cmd, union bpf_attr *attr,
6735 switch (cmd) {