3 |
* -- common SELinux utility functions |
* -- common SELinux utility functions |
4 |
* |
* |
5 |
* Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> |
* Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> |
6 |
|
* |
7 |
|
* Licensed under GPLv2, see file LICENSE in this tarball for details. |
8 |
*/ |
*/ |
9 |
#include "libbb.h" |
#include "libbb.h" |
10 |
#include <selinux/context.h> |
#include <selinux/context.h> |
36 |
if (setfscreatecon(scontext) < 0) { |
if (setfscreatecon(scontext) < 0) { |
37 |
/* Can be NULL. All known printf implementations |
/* Can be NULL. All known printf implementations |
38 |
* display "(null)", "<null>" etc */ |
* display "(null)", "<null>" etc */ |
39 |
bb_perror_msg_and_die("cannot set default " |
bb_perror_msg_and_die("can't set default " |
40 |
"file creation context to %s", scontext); |
"file creation context to %s", scontext); |
41 |
} |
} |
42 |
} |
} |