/kernel/linux/linux-6.6/security/apparmor/ |
H A D | policy_ns.c | 29 struct aa_ns *root_ns; variable 405 root_ns = alloc_ns(NULL, "root"); in aa_alloc_root_ns() 406 if (!root_ns) in aa_alloc_root_ns() 411 destroy_ns(root_ns); in aa_alloc_root_ns() 412 aa_free_ns(root_ns); in aa_alloc_root_ns() 416 root_ns->unconfined->ns = aa_get_ns(root_ns); in aa_alloc_root_ns() 426 struct aa_ns *ns = root_ns; in aa_free_root_ns() 428 root_ns = NULL; in aa_free_root_ns()
|
H A D | secid.c | 80 len = aa_label_asxprint(secdata, root_ns, label, in apparmor_secid_to_secctx() 83 len = aa_label_snxprint(NULL, 0, root_ns, label, flags); in apparmor_secid_to_secctx() 97 label = aa_label_strn_parse(&root_ns->unconfined->label, secdata, in apparmor_secctx_to_secid()
|
H A D | audit.c | 122 if (profile->ns != root_ns) { in audit_pre() 131 aa_label_xaudit(ab, root_ns, label, FLAG_VIEW_SUBNS, in audit_pre() 239 rule->label = aa_label_parse(&root_ns->unconfined->label, rulestr, in aa_audit_rule_init()
|
H A D | apparmorfs.c | 2646 ns_subload(root_ns) = dent; in aa_create_aafs() 2652 ns_subreplace(root_ns) = dent; in aa_create_aafs() 2658 ns_subremove(root_ns) = dent; in aa_create_aafs() 2664 ns_subrevision(root_ns) = dent; in aa_create_aafs() 2667 mutex_lock_nested(&root_ns->lock, root_ns->level); in aa_create_aafs() 2668 error = __aafs_ns_mkdir(root_ns, aafs_mnt->mnt_root, ".policy", in aa_create_aafs() 2670 mutex_unlock(&root_ns->lock); in aa_create_aafs()
|
H A D | net.c | 209 label = aa_label_strn_parse(&root_ns->unconfined->label, in apparmor_secmark_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | helper.c | 12 struct mlx5_flow_namespace *root_ns; in esw_acl_table_create() local 29 root_ns = mlx5_get_flow_vport_acl_namespace(dev, ns, vport_index); in esw_acl_table_create() 30 if (!root_ns) { in esw_acl_table_create() 36 acl = mlx5_create_vport_flow_table(root_ns, 0, size, 0, vport_num); in esw_acl_table_create()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | helper.c | 13 struct mlx5_flow_namespace *root_ns; in esw_acl_table_create() local 30 root_ns = mlx5_get_flow_vport_acl_namespace(dev, ns, vport->index); in esw_acl_table_create() 31 if (!root_ns) { in esw_acl_table_create() 40 acl = mlx5_create_vport_flow_table(root_ns, &ft_attr, vport_num); in esw_acl_table_create()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | legacy.c | 26 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_vepa_table() local 30 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_vepa_table() 31 if (!root_ns) { in esw_create_legacy_vepa_table() 40 fdb = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in esw_create_legacy_vepa_table() 77 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_fdb_table() local 89 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_fdb_table() 90 if (!root_ns) { in esw_create_legacy_fdb_table() 101 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_legacy_fdb_table()
|
H A D | indir_table.c | 252 struct mlx5_flow_namespace *root_ns; in mlx5_esw_indir_table_entry_create() local 257 root_ns = mlx5_get_flow_namespace(esw->dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_esw_indir_table_entry_create() 258 if (!root_ns) in mlx5_esw_indir_table_entry_create() 270 ft = mlx5_create_flow_table(root_ns, &ft_attr); in mlx5_esw_indir_table_entry_create()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_core.c | 367 static void cleanup_root_ns(struct mlx5_flow_root_namespace *root_ns); 2428 struct mlx5_flow_root_namespace *root_ns; in mlx5_get_flow_namespace() local 2454 root_ns = steering->fdb_root_ns; in mlx5_get_flow_namespace() 2460 root_ns = steering->egress_root_ns; in mlx5_get_flow_namespace() 2464 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace() 2468 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace() 2472 root_ns = steering->rdma_tx_root_ns; in mlx5_get_flow_namespace() 2475 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace() 2479 root_ns = steering->rdma_tx_root_ns; in mlx5_get_flow_namespace() 2483 root_ns in mlx5_get_flow_namespace() 2711 struct mlx5_flow_root_namespace *root_ns; del_sw_root_ns() local 2725 struct mlx5_flow_root_namespace *root_ns; create_root_ns() local 2784 set_prio_attrs(struct mlx5_flow_root_namespace *root_ns) set_prio_attrs() argument 2860 cleanup_root_ns(struct mlx5_flow_root_namespace *root_ns) cleanup_root_ns() argument [all...] |
H A D | eswitch_offloads_termtbl.c | 69 struct mlx5_flow_namespace *root_ns; in mlx5_eswitch_termtbl_create() local 72 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_eswitch_termtbl_create() 73 if (!root_ns) { in mlx5_eswitch_termtbl_create() 87 tt->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in mlx5_eswitch_termtbl_create()
|
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | secid.c | 82 len = aa_label_asxprint(secdata, root_ns, label, in apparmor_secid_to_secctx() 87 len = aa_label_snxprint(NULL, 0, root_ns, label, in apparmor_secid_to_secctx() 102 label = aa_label_strn_parse(&root_ns->unconfined->label, secdata, in apparmor_secctx_to_secid()
|
H A D | policy_ns.c | 26 struct aa_ns *root_ns; variable 392 root_ns = alloc_ns(NULL, "root"); in aa_alloc_root_ns() 393 if (!root_ns) in aa_alloc_root_ns() 404 struct aa_ns *ns = root_ns; in aa_free_root_ns() 406 root_ns = NULL; in aa_free_root_ns()
|
H A D | audit.c | 80 if (profile->ns != root_ns) { in audit_pre() 89 aa_label_xaudit(ab, root_ns, label, FLAG_VIEW_SUBNS, in audit_pre() 195 rule->label = aa_label_parse(&root_ns->unconfined->label, rulestr, in aa_audit_rule_init()
|
H A D | apparmorfs.c | 2624 ns_subload(root_ns) = dent; in aa_create_aafs() 2630 ns_subreplace(root_ns) = dent; in aa_create_aafs() 2636 ns_subremove(root_ns) = dent; in aa_create_aafs() 2642 ns_subrevision(root_ns) = dent; in aa_create_aafs() 2645 mutex_lock_nested(&root_ns->lock, root_ns->level); in aa_create_aafs() 2646 error = __aafs_ns_mkdir(root_ns, aafs_mnt->mnt_root, ".policy", in aa_create_aafs() 2648 mutex_unlock(&root_ns->lock); in aa_create_aafs()
|
H A D | net.c | 201 label = aa_label_strn_parse(&root_ns->unconfined->label, in apparmor_secmark_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_core.c | 277 static void cleanup_root_ns(struct mlx5_flow_root_namespace *root_ns); 2267 struct mlx5_flow_root_namespace *root_ns; in mlx5_get_flow_namespace() local 2294 root_ns = steering->egress_root_ns; in mlx5_get_flow_namespace() 2297 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace() 2300 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace() 2303 root_ns = steering->rdma_tx_root_ns; in mlx5_get_flow_namespace() 2305 root_ns = steering->root_ns; in mlx5_get_flow_namespace() 2309 if (!root_ns) in mlx5_get_flow_namespace() 2312 fs_prio = find_prio(&root_ns in mlx5_get_flow_namespace() 2513 struct mlx5_flow_root_namespace *root_ns; del_sw_root_ns() local 2527 struct mlx5_flow_root_namespace *root_ns; create_root_ns() local 2590 set_prio_attrs(struct mlx5_flow_root_namespace *root_ns) set_prio_attrs() argument 2666 cleanup_root_ns(struct mlx5_flow_root_namespace *root_ns) cleanup_root_ns() argument [all...] |
H A D | eswitch_offloads_termtbl.c | 69 struct mlx5_flow_namespace *root_ns; in mlx5_eswitch_termtbl_create() local 72 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_eswitch_termtbl_create() 73 if (!root_ns) { in mlx5_eswitch_termtbl_create() 87 tt->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in mlx5_eswitch_termtbl_create()
|
H A D | eswitch.c | 291 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_vepa_table() local 295 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_vepa_table() 296 if (!root_ns) { in esw_create_legacy_vepa_table() 305 fdb = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in esw_create_legacy_vepa_table() 321 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_fdb_table() local 333 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_fdb_table() 334 if (!root_ns) { in esw_create_legacy_fdb_table() 346 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_legacy_fdb_table()
|
H A D | eswitch_offloads.c | 1296 struct mlx5_flow_namespace *root_ns; in esw_create_offloads_fdb_tables() local 1310 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in esw_create_offloads_fdb_tables() 1311 if (!root_ns) { in esw_create_offloads_fdb_tables() 1316 esw->fdb_table.offloads.ns = root_ns; in esw_create_offloads_fdb_tables() 1317 err = mlx5_flow_namespace_set_mode(root_ns, in esw_create_offloads_fdb_tables() 1338 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_offloads_fdb_tables() 1447 mlx5_flow_namespace_set_mode(root_ns, MLX5_FLOW_STEERING_MODE_DMFS); in esw_create_offloads_fdb_tables()
|
H A D | fs_core.h | 122 struct mlx5_flow_root_namespace *root_ns; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | post_meter.c | 63 struct mlx5_flow_namespace *root_ns; in mlx5e_post_meter_table_create() local 65 root_ns = mlx5_get_flow_namespace(priv->mdev, ns_type); in mlx5e_post_meter_table_create() 66 if (!root_ns) { in mlx5e_post_meter_table_create() 76 return mlx5_create_flow_table(root_ns, &ft_attr); in mlx5e_post_meter_table_create()
|
H A D | sample.c | 67 struct mlx5_flow_namespace *root_ns; in sampler_termtbl_create() local 76 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in sampler_termtbl_create() 77 if (!root_ns) { in sampler_termtbl_create() 87 tc_psample->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in sampler_termtbl_create()
|
/kernel/linux/linux-5.10/security/apparmor/include/ |
H A D | policy_ns.h | 77 extern struct aa_ns *root_ns;
|
/kernel/linux/linux-6.6/security/apparmor/include/ |
H A D | policy_ns.h | 78 extern struct aa_ns *root_ns;
|