Commit 6a4a54c986eae48b6dfb56c33b5ac4498935669e
If SELinux is not enabled, do not check the label
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-01-02 09:13
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-01-02 09:13
Parent(s): e0656f4559fa64d94a12bc650dd26fde02e0197c
Signing key:
Tree: 80dbe3899ad7098a6a8147fc8f5315ab9aa4def7
File scripts/common.sh changed (mode: 100644) (index 6750bf5..ba4a7e2) |
3 |
3 |
# Be sure we are running under correct context |
# Be sure we are running under correct context |
4 |
4 |
function check_context() |
function check_context() |
5 |
5 |
{ |
{ |
|
6 |
|
selinuxenabled |
|
7 |
|
if [ "${?}" != "0" ]; then |
|
8 |
|
return |
|
9 |
|
fi |
|
10 |
|
|
6 |
11 |
if [ -r /proc/self/attr/current ]; then |
if [ -r /proc/self/attr/current ]; then |
7 |
12 |
grep -q rocketgit_t /proc/self/attr/current |
grep -q rocketgit_t /proc/self/attr/current |
8 |
13 |
if [ "${?}" != "0" ]; then |
if [ "${?}" != "0" ]; then |