Home
last modified time | relevance | path

Searched refs:ibdev_name (Results 1 – 8 of 8) sorted by relevance

/external/selinux/libsepol/src/
Dibendport_record.c14 char *ibdev_name; member
25 char *ibdev_name; member
33 char **ibdev_name) in sepol_ibendport_alloc_ibdev_name() argument
35 *ibdev_name = calloc(1, IB_DEVICE_NAME_MAX); in sepol_ibendport_alloc_ibdev_name()
37 if (!*ibdev_name) in sepol_ibendport_alloc_ibdev_name()
50 const char *ibdev_name, in sepol_ibendport_key_create() argument
62 if (sepol_ibendport_alloc_ibdev_name(handle, &tmp_key->ibdev_name) < 0) in sepol_ibendport_key_create()
65 strncpy(tmp_key->ibdev_name, ibdev_name, IB_DEVICE_NAME_MAX); in sepol_ibendport_key_create()
77 ibdev_name, port); in sepol_ibendport_key_create()
84 const char **ibdev_name, int *port) in hidden_def()
[all …]
Dibendports.c21 char *ibdev_name = NULL; in ibendport_from_record() local
34 &ibdev_name) < 0) in ibendport_from_record()
37 strncpy(tmp_ibendport->u.ibendport.dev_name, ibdev_name, IB_DEVICE_NAME_MAX); in ibendport_from_record()
39 free(ibdev_name); in ibendport_from_record()
40 ibdev_name = NULL; in ibendport_from_record()
66 free(ibdev_name); in ibendport_from_record()
133 const char *ibdev_name; in sepol_ibendport_exists() local
135 sepol_ibendport_key_unpack(key, &ibdev_name, &port); in sepol_ibendport_exists()
143 (!strcmp(ibdev_name, ibdev_name2))) { in sepol_ibendport_exists()
161 const char *ibdev_name; in sepol_ibendport_query() local
[all …]
/external/selinux/libsepol/include/sepol/
Dibendport_record.h24 const char *ibdev_name,
29 const char **ibdev_name,
33 char **ibdev_name);
47 char **ibdev_name);
51 const char *ibdev_name);
/external/selinux/libsemanage/src/
Dibendport_record.c49 const char *ibdev_name, in semanage_ibendport_key_create() argument
53 return sepol_ibendport_key_create(handle->sepolh, ibdev_name, port, key_ptr); in semanage_ibendport_key_create()
83 const char *ibdev_name) in hidden_def()
85 return sepol_ibendport_set_ibdev_name(handle->sepolh, ibendport, ibdev_name); in hidden_def()
Dibendports_local.c84 char *ibdev_name; in hidden_def() local
104 &ibdev_name)) { in hidden_def()
127 stop = !strcmp(ibdev_name, ibdev_name2); in hidden_def()
/external/selinux/python/semanage/
Dseobject.py1607 def __genkey(self, ibendport, ibdev_name): argument
1608 if ibdev_name == "":
1616 (rc, k) = semanage_ibendport_key_create(self.sh, ibdev_name, port)
1618 … raise ValueError(_("Could not create a key for ibendport %s/%s") % (ibdev_name, ibendport))
1619 return (k, ibdev_name, port)
1621 def __add(self, ibendport, ibdev_name, serange, type): argument
1635 (k, ibendport, port) = self.__genkey(ibendport, ibdev_name)
1639 … raise ValueError(_("Could not check if ibendport %s/%s is defined") % (ibdev_name, port))
1641 raise ValueError(_("ibendport %s/%s already defined") % (ibdev_name, port))
1645 raise ValueError(_("Could not create ibendport for %s/%s") % (ibdev_name, port))
[all …]
Dsemanage529 OBJECT.add(args.ibendport, args.ibdev_name, args.range, args.type)
531 OBJECT.modify(args.ibendport, args.ibdev_name, args.range, args.type)
533 OBJECT.delete(args.ibendport, args.ibdev_name)
/external/selinux/libsemanage/include/semanage/
Dibendport_record.h25 const char *ibdev_name,
41 const char *ibdev_name);