Path: blob/master/security/apparmor/include/capability.h
10817 views
/*1* AppArmor security module2*3* This file contains AppArmor capability mediation definitions.4*5* Copyright (C) 1998-2008 Novell/SUSE6* Copyright 2009-2010 Canonical Ltd.7*8* This program is free software; you can redistribute it and/or9* modify it under the terms of the GNU General Public License as10* published by the Free Software Foundation, version 2 of the11* License.12*/1314#ifndef __AA_CAPABILITY_H15#define __AA_CAPABILITY_H1617#include <linux/sched.h>1819struct aa_profile;2021/* aa_caps - confinement data for capabilities22* @allowed: capabilities mask23* @audit: caps that are to be audited24* @quiet: caps that should not be audited25* @kill: caps that when requested will result in the task being killed26* @extended: caps that are subject finer grained mediation27*/28struct aa_caps {29kernel_cap_t allow;30kernel_cap_t audit;31kernel_cap_t quiet;32kernel_cap_t kill;33kernel_cap_t extended;34};3536int aa_capable(struct task_struct *task, struct aa_profile *profile, int cap,37int audit);3839static inline void aa_free_cap_rules(struct aa_caps *caps)40{41/* NOP */42}4344#endif /* __AA_CAPBILITY_H */454647