Lines Matching refs:p
2164 static int smk_curacc_on_task(struct task_struct *p, int access, in smk_curacc_on_task() argument
2168 struct smack_known *skp = smk_of_task_struct_obj(p); in smk_curacc_on_task()
2172 smk_ad_setfield_u_tsk(&ad, p); in smk_curacc_on_task()
2174 rc = smk_bu_task(p, access, rc); in smk_curacc_on_task()
2185 static int smack_task_setpgid(struct task_struct *p, pid_t pgid) in smack_task_setpgid() argument
2187 return smk_curacc_on_task(p, MAY_WRITE, __func__); in smack_task_setpgid()
2196 static int smack_task_getpgid(struct task_struct *p) in smack_task_getpgid() argument
2198 return smk_curacc_on_task(p, MAY_READ, __func__); in smack_task_getpgid()
2207 static int smack_task_getsid(struct task_struct *p) in smack_task_getsid() argument
2209 return smk_curacc_on_task(p, MAY_READ, __func__); in smack_task_getsid()
2232 static void smack_task_getsecid_obj(struct task_struct *p, u32 *secid) in smack_task_getsecid_obj() argument
2234 struct smack_known *skp = smk_of_task_struct_obj(p); in smack_task_getsecid_obj()
2246 static int smack_task_setnice(struct task_struct *p, int nice) in smack_task_setnice() argument
2248 return smk_curacc_on_task(p, MAY_WRITE, __func__); in smack_task_setnice()
2258 static int smack_task_setioprio(struct task_struct *p, int ioprio) in smack_task_setioprio() argument
2260 return smk_curacc_on_task(p, MAY_WRITE, __func__); in smack_task_setioprio()
2269 static int smack_task_getioprio(struct task_struct *p) in smack_task_getioprio() argument
2271 return smk_curacc_on_task(p, MAY_READ, __func__); in smack_task_getioprio()
2280 static int smack_task_setscheduler(struct task_struct *p) in smack_task_setscheduler() argument
2282 return smk_curacc_on_task(p, MAY_WRITE, __func__); in smack_task_setscheduler()
2291 static int smack_task_getscheduler(struct task_struct *p) in smack_task_getscheduler() argument
2293 return smk_curacc_on_task(p, MAY_READ, __func__); in smack_task_getscheduler()
2302 static int smack_task_movememory(struct task_struct *p) in smack_task_movememory() argument
2304 return smk_curacc_on_task(p, MAY_WRITE, __func__); in smack_task_movememory()
2317 static int smack_task_kill(struct task_struct *p, struct kernel_siginfo *info, in smack_task_kill() argument
2322 struct smack_known *tkp = smk_of_task_struct_obj(p); in smack_task_kill()
2329 smk_ad_setfield_u_tsk(&ad, p); in smack_task_kill()
2336 rc = smk_bu_task(p, MAY_DELIVER, rc); in smack_task_kill()
2357 static void smack_task_to_inode(struct task_struct *p, struct inode *inode) in smack_task_to_inode() argument
2360 struct smack_known *skp = smk_of_task_struct_obj(p); in smack_task_to_inode()
3648 static int smack_getprocattr(struct task_struct *p, const char *name, char **value) in smack_getprocattr() argument
3650 struct smack_known *skp = smk_of_task_struct_obj(p); in smack_getprocattr()