[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] selinux-at, selinux-h: port to SELinux 3.1
From: |
Bernhard Voelker |
Subject: |
[PATCH] selinux-at, selinux-h: port to SELinux 3.1 |
Date: |
Tue, 20 Oct 2020 01:14:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 |
The update to libselinux 3.1 brought a lot of new warnings
when building GNU findutils, e.g.:
../gl/lib/selinux-at.h:34:1: warning: ‘security_context_t’ is deprecated
[-Wdeprecated-declarations]
34 | int getfileconat (int dir_fd, char const *file, security_context_t
*con);
| ^~~
../gl/lib/selinux-at.h:39:1: warning: ‘security_context_t’ is deprecated
[-Wdeprecated-declarations]
39 | int lgetfileconat (int dir_fd, char const *file, security_context_t
*con);
| ^~~
../gl/lib/selinux-at.h:45:1: warning: ‘security_context_t’ is deprecated
[-Wdeprecated-declarations]
45 | int setfileconat (int dir_fd, char const *file, security_context_t
con);
| ^~~
../gl/lib/selinux-at.h:52:1: warning: ‘security_context_t’ is deprecated
[-Wdeprecated-declarations]
52 | int lsetfileconat (int dir_fd, char const *file, security_context_t
con);
| ^~~
Upstream SELinux had changed from 'security_context_t' to 'char *' internally
already in 2014 [1],
and now finally deprecated the typedef [2].
[1] https://github.com/SELinuxProject/selinux/commit/9eb9c93275
[2] https://github.com/SELinuxProject/selinux/commit/7a124ca275
The attached patch changes all occurrences of 'security_context_t' to 'char *'.
Have a nice day,
Berny
0001-selinux-at-selinux-h-port-to-SELinux-3.1.patch
Description: Text Data
- [PATCH] selinux-at, selinux-h: port to SELinux 3.1,
Bernhard Voelker <=