diff options
-rw-r--r-- | src/mcscolor.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/mcscolor.c b/src/mcscolor.c index f4be97c..ebe5be0 100644 --- a/src/mcscolor.c +++ b/src/mcscolor.c @@ -246,24 +246,6 @@ static int process_color(char *buffer, int line) { return 0; } -static char *get_color_path(void) -{ - static char path[256]; - char *poltype; - int rc; - - *path = '\0'; - - rc = selinux_getpolicytype(&poltype); - if (rc == 0) { - strncat(path, "/etc/selinux/", 16); - strncat(path, poltype, 128); - strncat(path, "/secolor.conf", 16); - } - syslog(LOG_ERR, "%s", path); - return path; -} - /* Read in color file. */ int init_colors(void) { @@ -274,7 +256,7 @@ int init_colors(void) { getcon(&my_context); - cfg = fopen(get_color_path(), "r"); + cfg = fopen(selinux_colors_path(), "r"); if (!cfg) return 1; __fsetlocking(cfg, FSETLOCKING_BYCALLER); |