diff options
| author | Sam James <sam@gentoo.org> | 2021-11-22 10:37:49 +0000 | 
|---|---|---|
| committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-11-27 13:13:52 -0600 | 
| commit | b94517376e6bd1e02e09cf5b4cf38d1c52fdb6be (patch) | |
| tree | 771bde34ace87d476c37abade80ab79247e1a91d | |
| parent | b868fc2c8d8068ef4804ef9f5bc19b9c5dc8ae19 (diff) | |
| download | openrc-b94517376e6bd1e02e09cf5b4cf38d1c52fdb6be.tar.xz | |
src/rc/rc-selinux.c: fix use of deprecated security_context_t
It's only a char* and has been deprecated upstream [0].
[0] https://github.com/SELinuxProject/selinux/commit/7a124ca27581
Fixes: #478
| -rw-r--r-- | src/rc/rc-selinux.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/rc-selinux.c b/src/rc/rc-selinux.c index 2c9673cc..95947fd8 100644 --- a/src/rc/rc-selinux.c +++ b/src/rc/rc-selinux.c @@ -66,7 +66,7 @@ int selinux_util_label(const char *path)  	int retval = 0;  	int enforce;  	struct stat st; -	security_context_t con; +	char *con;  	enforce = security_getenforce();  	if (retval < 0)  | 
