Searched refs:root_ns (Results 1 – 11 of 11) sorted by relevance
/Linux-v4.19/security/apparmor/ |
D | secid.c | 88 len = aa_label_asxprint(secdata, root_ns, label, in apparmor_secid_to_secctx() 93 len = aa_label_snxprint(NULL, 0, root_ns, label, in apparmor_secid_to_secctx() 108 label = aa_label_strn_parse(&root_ns->unconfined->label, secdata, in apparmor_secctx_to_secid()
|
D | policy_ns.c | 30 struct aa_ns *root_ns; variable 396 root_ns = alloc_ns(NULL, "root"); in aa_alloc_root_ns() 397 if (!root_ns) in aa_alloc_root_ns() 408 struct aa_ns *ns = root_ns; in aa_free_root_ns() 410 root_ns = NULL; in aa_free_root_ns()
|
D | audit.c | 86 if (profile->ns != root_ns) { in audit_pre() 95 aa_label_xaudit(ab, root_ns, label, FLAG_VIEW_SUBNS, in audit_pre() 201 rule->label = aa_label_parse(&root_ns->unconfined->label, rulestr, in aa_audit_rule_init()
|
D | apparmorfs.c | 2521 ns_subload(root_ns) = dent; in aa_create_aafs() 2527 ns_subreplace(root_ns) = dent; in aa_create_aafs() 2533 ns_subremove(root_ns) = dent; in aa_create_aafs() 2539 ns_subrevision(root_ns) = dent; in aa_create_aafs() 2542 mutex_lock_nested(&root_ns->lock, root_ns->level); in aa_create_aafs() 2543 error = __aafs_ns_mkdir(root_ns, aafs_mnt->mnt_root, ".policy", in aa_create_aafs() 2545 mutex_unlock(&root_ns->lock); in aa_create_aafs()
|
D | label.c | 1610 ns = root_ns; in aa_label_snxprint() 1873 if (str == NULL || (*str == '=' && base != &root_ns->unconfined->label)) in aa_label_strn_parse() 1965 if (labels_ns(this) != root_ns) in aa_labelset_destroy()
|
D | lsm.c | 1458 cred_label(cred) = aa_get_label(ns_unconfined(root_ns)); in set_init_ctx()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_core.c | 191 static void cleanup_root_ns(struct mlx5_flow_root_namespace *root_ns); 1982 struct mlx5_flow_root_namespace *root_ns; in mlx5_get_flow_namespace() local 2024 root_ns = steering->root_ns; in mlx5_get_flow_namespace() 2025 if (!root_ns) in mlx5_get_flow_namespace() 2028 fs_prio = find_prio(&root_ns->ns, prio); in mlx5_get_flow_namespace() 2215 struct mlx5_flow_root_namespace *root_ns; in create_root_ns() local 2223 root_ns = kvzalloc(sizeof(*root_ns), GFP_KERNEL); in create_root_ns() 2224 if (!root_ns) in create_root_ns() 2227 root_ns->dev = steering->dev; in create_root_ns() 2228 root_ns->table_type = table_type; in create_root_ns() [all …]
|
D | eswitch_offloads.c | 507 struct mlx5_flow_namespace *root_ns; in esw_create_offloads_fast_fdb_table() local 514 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in esw_create_offloads_fast_fdb_table() 515 if (!root_ns) { in esw_create_offloads_fast_fdb_table() 534 fdb = mlx5_create_auto_grouped_flow_table(root_ns, FDB_FAST_PATH, in esw_create_offloads_fast_fdb_table() 548 fdb = mlx5_create_auto_grouped_flow_table(root_ns, FDB_FAST_PATH, in esw_create_offloads_fast_fdb_table() 582 struct mlx5_flow_namespace *root_ns; in esw_create_offloads_fdb_tables() local 595 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in esw_create_offloads_fdb_tables() 596 if (!root_ns) { in esw_create_offloads_fdb_tables() 611 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_offloads_fdb_tables()
|
D | eswitch.c | 254 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_fdb_table() local 266 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in esw_create_legacy_fdb_table() 267 if (!root_ns) { in esw_create_legacy_fdb_table() 279 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_legacy_fdb_table() 851 struct mlx5_flow_namespace *root_ns; in esw_vport_enable_egress_acl() local 871 root_ns = mlx5_get_flow_vport_acl_namespace(dev, MLX5_FLOW_NAMESPACE_ESW_EGRESS, in esw_vport_enable_egress_acl() 873 if (!root_ns) { in esw_vport_enable_egress_acl() 882 acl = mlx5_create_vport_flow_table(root_ns, 0, table_size, 0, vport->vport); in esw_vport_enable_egress_acl() 963 struct mlx5_flow_namespace *root_ns; in esw_vport_enable_ingress_acl() local 989 root_ns = mlx5_get_flow_vport_acl_namespace(dev, MLX5_FLOW_NAMESPACE_ESW_INGRESS, in esw_vport_enable_ingress_acl() [all …]
|
D | fs_core.h | 73 struct mlx5_flow_root_namespace *root_ns; member
|
/Linux-v4.19/security/apparmor/include/ |
D | policy_ns.h | 81 extern struct aa_ns *root_ns;
|