Home
last modified time | relevance | path

Searched defs:ns (Results 1 – 25 of 27) sorted by relevance

12

/security/apparmor/
Dpolicy_ns.c89 struct aa_ns *ns; in alloc_ns() local
137 void aa_free_ns(struct aa_ns *ns) in aa_free_ns()
164 struct aa_ns *ns = NULL; in aa_findn_ns() local
202 struct aa_ns *ns = view; in __aa_lookupn_ns() local
233 struct aa_ns *ns = NULL; in aa_lookupn_ns() local
245 struct aa_ns *ns; in __aa_create_ns() local
285 struct aa_ns *ns; in __aa_find_or_create_ns() local
310 struct aa_ns *ns; in aa_prepare_ns() local
330 static void destroy_ns(struct aa_ns *ns) in destroy_ns()
360 void __aa_remove_ns(struct aa_ns *ns) in __aa_remove_ns()
[all …]
Dpolicy.c361 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent()
433 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, in aa_lookupn_profile()
452 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *hname) in aa_lookup_profile()
461 struct aa_ns *ns; in aa_fqlookupn_profile() local
643 bool policy_view_capable(struct aa_ns *ns) in policy_view_capable()
663 bool policy_admin_capable(struct aa_ns *ns) in policy_admin_capable()
681 int aa_may_manage_policy(struct aa_label *label, struct aa_ns *ns, u32 mask) in aa_may_manage_policy()
797 static int __lookup_replace(struct aa_ns *ns, const char *hname, in __lookup_replace()
861 struct aa_ns *ns = NULL; in aa_replace_profiles() local
1098 struct aa_ns *ns = NULL; in aa_remove_profiles() local
Dlabel.c370 struct aa_ns *ns = labels_ns(label); in aa_label_kref() local
1444 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) in aa_update_label_name()
1476 static inline bool use_label_hname(struct aa_ns *ns, struct aa_label *label, in use_label_hname()
1553 static const char *label_modename(struct aa_ns *ns, struct aa_label *label, in label_modename()
1586 static inline bool display_mode(struct aa_ns *ns, struct aa_label *label, in display_mode()
1623 int aa_label_snxprint(char *str, size_t size, struct aa_ns *ns, in aa_label_snxprint()
1687 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, in aa_label_asxprint()
1716 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, in aa_label_acntsxprint()
1735 void aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns, in aa_label_xaudit()
1765 void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns, in aa_label_seq_xprint()
[all …]
Dapparmorfs.c412 loff_t *pos, struct aa_ns *ns) in policy_update()
443 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_load() local
460 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_replace() local
480 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_remove() local
514 struct aa_ns *ns; member
593 void __aa_bump_ns_revision(struct aa_ns *ns) in __aa_bump_ns_revision()
1429 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata) in __aa_fs_create_rawdata()
1780 struct aa_ns *ns, *parent; in ns_mkdir_op() local
1829 struct aa_ns *ns, *parent; in ns_rmdir_op() local
1875 static void __aa_fs_list_remove_rawdata(struct aa_ns *ns) in __aa_fs_list_remove_rawdata()
[all …]
Dprocattr.c35 struct aa_ns *ns = labels_ns(label); in aa_getprocattr() local
Dpolicy_unpack.c157 struct aa_ns *ns = aa_get_ns(d->ns); in do_loaddata_free() local
957 static int verify_header(struct aa_ext *e, int required, const char **ns) in verify_header()
1175 const char **ns) in aa_unpack()
Ddomain.c387 struct aa_ns *ns, struct list_head *head, in find_attach()
562 struct aa_ns *ns = profile->ns; in x_to_label() local
Dlsm.c180 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable()
853 struct aa_ns *ns = aa_get_current_ns(); in apparmor_socket_post_create() local
/security/keys/
Dpersistent.c20 static int key_create_persistent_register(struct user_namespace *ns) in key_create_persistent_register()
40 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, in key_create_persistent()
73 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, in key_get_persistent()
131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent() local
Dkeyring.c57 void key_free_user_ns(struct user_namespace *ns) in key_free_user_ns()
109 struct user_namespace *ns = current_user_ns(); in keyring_publish_name() local
1143 struct user_namespace *ns = current_user_ns(); in find_keyring_by_name() local
/security/selinux/
Dnetif.c53 static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex) in sel_netif_hashfn()
68 static inline struct sel_netif *sel_netif_find(const struct net *ns, in sel_netif_find()
133 static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid_slow()
192 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid()
218 static void sel_netif_kill(const struct net *ns, int ifindex) in sel_netif_kill()
/security/tomoyo/
Dcommon.c347 void tomoyo_init_policy_namespace(struct tomoyo_policy_namespace *ns) in tomoyo_init_policy_namespace()
491 (struct tomoyo_policy_namespace *ns, const unsigned int profile) in tomoyo_assign_profile()
534 struct tomoyo_profile *tomoyo_profile(const struct tomoyo_policy_namespace *ns, in tomoyo_profile()
747 struct tomoyo_policy_namespace *ns = in tomoyo_read_profile() local
1126 static int tomoyo_write_domain2(struct tomoyo_policy_namespace *ns, in tomoyo_write_domain2()
1175 struct tomoyo_policy_namespace *ns; in tomoyo_write_domain() local
1799 struct tomoyo_policy_namespace *ns = in tomoyo_read_group() local
1858 struct tomoyo_policy_namespace *ns = in tomoyo_read_policy() local
1918 struct tomoyo_policy_namespace *ns = in tomoyo_read_exception() local
2542 struct list_head *ns; in tomoyo_set_namespace_cursor() local
[all …]
Ddomain.c344 (const struct tomoyo_policy_namespace *ns, in tomoyo_transition_type()
441 struct tomoyo_policy_namespace *ns; in tomoyo_find_namespace() local
Daudit.c327 static bool tomoyo_get_audit(const struct tomoyo_policy_namespace *ns, in tomoyo_get_audit()
Dgc.c528 struct tomoyo_policy_namespace *ns; in tomoyo_collect_entry() local
Dutil.c987 int tomoyo_get_mode(const struct tomoyo_policy_namespace *ns, const u8 profile, in tomoyo_get_mode()
Dcommon.h686 struct tomoyo_policy_namespace *ns; member
783 struct tomoyo_policy_namespace *ns; member
802 struct list_head *ns; member
822 struct tomoyo_policy_namespace *ns; member
/security/apparmor/include/
Dpolicy_ns.h112 static inline struct aa_ns *aa_get_ns(struct aa_ns *ns) in aa_get_ns()
126 static inline void aa_put_ns(struct aa_ns *ns) in aa_put_ns()
Dcred.h179 struct aa_ns *ns; in aa_get_current_ns() local
Dpolicy_unpack.h63 struct aa_ns *ns; member
Dpolicy.h133 struct aa_ns *ns; member
Daudit.h143 const char *ns; member
/security/safesetid/
Dlsm.c91 struct user_namespace *ns, in safesetid_security_capable()
/security/
Dcommoncap.c68 struct user_namespace *ns = targ_ns; in cap_capable() local
325 struct user_namespace *ns; in rootid_owns_currentns() local
/security/selinux/include/
Dobjsec.h85 struct net *ns; /* network namespace */ member

12