* [PATCH] libsepol: Export sepol_polcap_getnum/name functions
@ 2018-03-08 20:19 Stephen Smalley
2018-03-15 18:01 ` jwcart2
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2018-03-08 20:19 UTC (permalink / raw)
To: selinux; +Cc: pebenito, 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.
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.
Suggested-by: Chris PeBenito <pebenito@ieee.org>
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
libsepol/src/libsepol.map.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libsepol/src/libsepol.map.in b/libsepol/src/libsepol.map.in
index 2a9996f7..d879016c 100644
--- a/libsepol/src/libsepol.map.in
+++ b/libsepol/src/libsepol.map.in
@@ -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;
--
2.14.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] libsepol: Export sepol_polcap_getnum/name functions
2018-03-08 20:19 [PATCH] libsepol: Export sepol_polcap_getnum/name functions Stephen Smalley
@ 2018-03-15 18:01 ` jwcart2
2018-03-15 18:31 ` William Roberts
0 siblings, 1 reply; 4+ messages in thread
From: jwcart2 @ 2018-03-15 18:01 UTC (permalink / raw)
To: Stephen Smalley, selinux
On 03/08/2018 03:19 PM, Stephen Smalley wrote:
> 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.
>
> Suggested-by: Chris PeBenito <pebenito@ieee.org>
> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Carter <jwcart2@tycho.nsa.gov>
> ---
> libsepol/src/libsepol.map.in | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libsepol/src/libsepol.map.in b/libsepol/src/libsepol.map.in
> index 2a9996f7..d879016c 100644
> --- a/libsepol/src/libsepol.map.in
> +++ b/libsepol/src/libsepol.map.in
> @@ -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;
>
--
James Carter <jwcart2@tycho.nsa.gov>
National Security Agency
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libsepol: Export sepol_polcap_getnum/name functions
2018-03-15 18:01 ` jwcart2
@ 2018-03-15 18:31 ` William Roberts
2018-03-15 20:53 ` William Roberts
0 siblings, 1 reply; 4+ messages in thread
From: William Roberts @ 2018-03-15 18:31 UTC (permalink / raw)
To: jwcart2; +Cc: Stephen Smalley, selinux
On Thu, Mar 15, 2018 at 11:01 AM, jwcart2 <jwcart2@tycho.nsa.gov> wrote:
> On 03/08/2018 03:19 PM, Stephen Smalley wrote:
>>
>> 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.
>>
>> Suggested-by: Chris PeBenito <pebenito@ieee.org>
>> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
>
>
> Acked-by: James Carter <jwcart2@tycho.nsa.gov>
>
>> ---
>> libsepol/src/libsepol.map.in | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/libsepol/src/libsepol.map.in b/libsepol/src/libsepol.map.in
>> index 2a9996f7..d879016c 100644
>> --- a/libsepol/src/libsepol.map.in
>> +++ b/libsepol/src/libsepol.map.in
>> @@ -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;
>>
Acked-by: William Roberts <william.c.roberts@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libsepol: Export sepol_polcap_getnum/name functions
2018-03-15 18:31 ` William Roberts
@ 2018-03-15 20:53 ` William Roberts
0 siblings, 0 replies; 4+ messages in thread
From: William Roberts @ 2018-03-15 20:53 UTC (permalink / raw)
To: jwcart2; +Cc: Stephen Smalley, selinux
merged:
https://github.com/SELinuxProject/selinux/pull/85
On Thu, Mar 15, 2018 at 11:31 AM, William Roberts
<bill.c.roberts@gmail.com> wrote:
> On Thu, Mar 15, 2018 at 11:01 AM, jwcart2 <jwcart2@tycho.nsa.gov> wrote:
>> On 03/08/2018 03:19 PM, Stephen Smalley wrote:
>>>
>>> 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.
>>>
>>> Suggested-by: Chris PeBenito <pebenito@ieee.org>
>>> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
>>
>>
>> Acked-by: James Carter <jwcart2@tycho.nsa.gov>
>>
>>> ---
>>> libsepol/src/libsepol.map.in | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/libsepol/src/libsepol.map.in b/libsepol/src/libsepol.map.in
>>> index 2a9996f7..d879016c 100644
>>> --- a/libsepol/src/libsepol.map.in
>>> +++ b/libsepol/src/libsepol.map.in
>>> @@ -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;
>>>
> Acked-by: William Roberts <william.c.roberts@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-03-15 20:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-08 20:19 [PATCH] libsepol: Export sepol_polcap_getnum/name functions Stephen Smalley
2018-03-15 18:01 ` jwcart2
2018-03-15 18:31 ` William Roberts
2018-03-15 20:53 ` William Roberts
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.