Skip to content

Commit

Permalink
criu: don't use the deprecated security_context_t (SELinux)
Browse files Browse the repository at this point in the history
This change fixes the error:
error: 'security_context_t' is deprecated
[-Werror=deprecated-declarations]

Source files modified:

* lsm.c
* net.c

Please refer to:
SELinuxProject/selinux@9eb9c9327

Signed-off-by: Abhishek Vijeev <[email protected]>
  • Loading branch information
abhishekvijeev committed Aug 17, 2020
1 parent 0381bd8 commit 527d926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion criu/lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static int apparmor_get_label(pid_t pid, char **profile_name)
#ifdef CONFIG_HAS_SELINUX
static int selinux_get_label(pid_t pid, char **output)
{
security_context_t ctx;
char *ctx;
char *pos;
int i;
int ret = -1;
Expand Down
2 changes: 1 addition & 1 deletion criu/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -2962,7 +2962,7 @@ static int prep_ns_sockets(struct ns_id *ns, bool for_dump)
{
int nsret = -1, ret;
#ifdef CONFIG_HAS_SELINUX
security_context_t ctx;
char *ctx;
#endif

if (ns->type != NS_CRIU) {
Expand Down

0 comments on commit 527d926

Please sign in to comment.