resource.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) | resource.h (c97204baf840bf850e14ef4f5f43251239ca43b6) |
---|---|
1/* 2 * AppArmor security module 3 * 4 * This file contains AppArmor resource limits function definitions. 5 * 6 * Copyright (C) 1998-2008 Novell/SUSE 7 * Copyright 2009-2010 Canonical Ltd. 8 * --- 20 unchanged lines hidden (view full) --- 29 * AppArmor rlimits are used to set confined task rlimits. Only the 30 * limits specified in @mask will be controlled by apparmor. 31 */ 32struct aa_rlimit { 33 unsigned int mask; 34 struct rlimit limits[RLIM_NLIMITS]; 35}; 36 | 1/* 2 * AppArmor security module 3 * 4 * This file contains AppArmor resource limits function definitions. 5 * 6 * Copyright (C) 1998-2008 Novell/SUSE 7 * Copyright 2009-2010 Canonical Ltd. 8 * --- 20 unchanged lines hidden (view full) --- 29 * AppArmor rlimits are used to set confined task rlimits. Only the 30 * limits specified in @mask will be controlled by apparmor. 31 */ 32struct aa_rlimit { 33 unsigned int mask; 34 struct rlimit limits[RLIM_NLIMITS]; 35}; 36 |
37extern struct aa_fs_entry aa_fs_entry_rlimit[]; | 37extern struct aa_sfs_entry aa_sfs_entry_rlimit[]; |
38 39int aa_map_resource(int resource); 40int aa_task_setrlimit(struct aa_profile *profile, struct task_struct *, 41 unsigned int resource, struct rlimit *new_rlim); 42 43void __aa_transition_rlimits(struct aa_profile *old, struct aa_profile *new); 44 45static inline void aa_free_rlimit_rules(struct aa_rlimit *rlims) 46{ 47 /* NOP */ 48} 49 50#endif /* __AA_RESOURCE_H */ | 38 39int aa_map_resource(int resource); 40int aa_task_setrlimit(struct aa_profile *profile, struct task_struct *, 41 unsigned int resource, struct rlimit *new_rlim); 42 43void __aa_transition_rlimits(struct aa_profile *old, struct aa_profile *new); 44 45static inline void aa_free_rlimit_rules(struct aa_rlimit *rlims) 46{ 47 /* NOP */ 48} 49 50#endif /* __AA_RESOURCE_H */ |