[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] Substitute security_context_t with char *



On Wed, 2020-07-15 at 13:45 +0200, Michal Privoznik wrote:
> Historically, we've used security_context_t for variables passed
> to libselinux APIs. But almost 7 years ago, libselinux developers
> admitted in their API that in fact, it's just a 'char *' type
> [1]. Ever since then the APIs accept 'char *' instead, but they
> kept the old alias just for API stability. Well, not anymore [2].
> 
> 1: https://github.com/SELinuxProject/selinux/commit/9eb9c9327563014ad6a807814e7975424642d5b9
> 2: https://github.com/SELinuxProject/selinux/commit/7a124ca2758136f49cc38efc26fb1a2d385ecfd9
> 
> Signed-off-by: Michal Privoznik <mprivozn redhat com>
> ---
>  src/libvirt-lxc.c                |  2 +-
>  src/rpc/virnetsocket.c           |  2 +-
>  src/security/security_selinux.c  | 26 +++++++++++++-------------
>  src/storage/storage_util.c       |  2 +-
>  src/util/viridentity.c           |  2 +-
>  tests/securityselinuxhelper.c    | 16 ++++++++--------
>  tests/securityselinuxlabeltest.c |  4 ++--
>  tests/securityselinuxtest.c      |  2 +-
>  tests/viridentitytest.c          |  2 +-
>  9 files changed, 29 insertions(+), 29 deletions(-)

Reviewed-by: Andrea Bolognani <abologna redhat com>

-- 
Andrea Bolognani / Red Hat / Virtualization


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]