Skip to contentSkip to conversation

libsepol: Export sepol_polcap_getnum/name functions

PATCH In review Stephen Smalley 3 participants 4 messages Mar 8, 2018 – Mar 15, 2018 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsepol: Export sepol_polcap_getnum/name functions

Export the sepol_polcap_getnum/name() functions to users of the shared library. This will enable SETools to stop depending on the static library.

Note that we may want to move polcaps.h up one level since the convention is that headers directly under include/sepol are shared library APIs while headers under include/sepol/policydb are limited to static users. However, this will unnecessarily break the build for existing static users so it is deferred.

---
 libsepol/src/libsepol.map.in | 2 ++
 1 file changed, 2 insertions(+)
libsepol/src/libsepol.map.in +2 -0
index 2a9996f7..d879016c 100644
@@ -56,4 +56,6 @@ LIBSEPOL_1.1 {
 	sepol_module_policydb_to_cil;
 	sepol_kernel_policydb_to_cil;
 	sepol_kernel_policydb_to_conf;
+	sepol_polcap_getnum;
+	sepol_polcap_getname;
 } LIBSEPOL_1.0;
Signature · 1 line
2.14.3
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Stephen Smalley

Export the sepol_polcap_getnum/name() functions to users of the shared library. This will enable SETools to stop depending on the static library.

Quoted 8 lines

Note that we may want to move polcaps.h up one level since the convention is that headers directly under include/sepol are shared library APIs while headers under include/sepol/policydb are limited to static users. However, this will unnecessarily break the build for existing static users so it is deferred.

Quoted 16 lines
---
  libsepol/src/libsepol.map.in | 2 ++
  1 file changed, 2 insertions(+)
libsepol/src/libsepol.map.in +2 -0
index 2a9996f7..d879016c 100644
@@ -56,4 +56,6 @@ LIBSEPOL_1.1 {
  	sepol_module_policydb_to_cil;
  	sepol_kernel_policydb_to_cil;
  	sepol_kernel_policydb_to_conf;
+	sepol_polcap_getnum;
+	sepol_polcap_getname;
  } LIBSEPOL_1.0;
Signature · 2 lines
James Carter <[email protected]>
National Security Agency
#2 lore raw
Quoted 22 lines · On Thu, Mar 15, 2018 at 11:01 AM, jwcart2 <[email protected]> wrote:
Quoted 5 lines · Stephen Smalley

Export the sepol_polcap_getnum/name() functions to users of the shared library. This will enable SETools to stop depending on the static library.

Quoted 8 lines

Note that we may want to move polcaps.h up one level since the convention is that headers directly under include/sepol are shared library APIs while headers under include/sepol/policydb are limited to static users. However, this will unnecessarily break the build for existing static users so it is deferred.

Quoted 4 lines
---
  libsepol/src/libsepol.map.in | 2 ++
  1 file changed, 2 insertions(+)
Quoted 12 lines

libsepol/src/libsepol.map.in LIBSEPOL_1.1 { · line 61

Quoted 12 lines
libsepol/src/libsepol.map.in +2 -0
index 2a9996f7..d879016c 100644
@@ -56,4 +56,6 @@ LIBSEPOL_1.1 {
        sepol_module_policydb_to_cil;
        sepol_kernel_policydb_to_cil;
        sepol_kernel_policydb_to_conf;
+       sepol_polcap_getnum;
+       sepol_polcap_getname;
  } LIBSEPOL_1.0;
#3 lore raw

merged:
https://github.com/SELinuxProject/selinux/pull/85

Quoted 36 lines · William Roberts
Quoted 22 lines · On Thu, Mar 15, 2018 at 11:01 AM, jwcart2 <[email protected]> wrote:
Quoted 5 lines · Stephen Smalley

Export the sepol_polcap_getnum/name() functions to users of the shared library. This will enable SETools to stop depending on the static library.

Quoted 8 lines

Note that we may want to move polcaps.h up one level since the convention is that headers directly under include/sepol are shared library APIs while headers under include/sepol/policydb are limited to static users. However, this will unnecessarily break the build for existing static users so it is deferred.

Quoted 4 lines
---
  libsepol/src/libsepol.map.in | 2 ++
  1 file changed, 2 insertions(+)
Quoted 12 lines

libsepol/src/libsepol.map.in LIBSEPOL_1.1 { · line 61

Quoted 12 lines
libsepol/src/libsepol.map.in +2 -0
index 2a9996f7..d879016c 100644
@@ -56,4 +56,6 @@ LIBSEPOL_1.1 {
        sepol_module_policydb_to_cil;
        sepol_kernel_policydb_to_cil;
        sepol_kernel_policydb_to_conf;
+       sepol_polcap_getnum;
+       sepol_polcap_getname;
  } LIBSEPOL_1.0;