enter_namespaces(): Add missing newline at error messages
This commit is contained in:
parent
3732524bfa
commit
c9fdeb4a1d
6
exile.c
6
exile.c
@ -959,7 +959,7 @@ static int enter_namespaces(int namespace_options, uid_t namespace_uid, gid_t na
|
|||||||
int fd = open("/proc/self/setgroups", O_WRONLY);
|
int fd = open("/proc/self/setgroups", O_WRONLY);
|
||||||
if(fd == -1)
|
if(fd == -1)
|
||||||
{
|
{
|
||||||
EXILE_LOG_ERROR("Failed to open /proc/self/setgroups for writing");
|
EXILE_LOG_ERROR("Failed to open /proc/self/setgroups for writing\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
int writesize = snprintf(buf, sizeof(buf), "deny");
|
int writesize = snprintf(buf, sizeof(buf), "deny");
|
||||||
@ -974,7 +974,7 @@ static int enter_namespaces(int namespace_options, uid_t namespace_uid, gid_t na
|
|||||||
fd = open("/proc/self/uid_map", O_WRONLY);
|
fd = open("/proc/self/uid_map", O_WRONLY);
|
||||||
if(fd == -1)
|
if(fd == -1)
|
||||||
{
|
{
|
||||||
EXILE_LOG_ERROR("Failed to open /proc/self/uid_map for writing");
|
EXILE_LOG_ERROR("Failed to open /proc/self/uid_map for writing\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
writesize = snprintf(buf, sizeof(buf), "%u %u 1\n", namespace_uid, current_uid);
|
writesize = snprintf(buf, sizeof(buf), "%u %u 1\n", namespace_uid, current_uid);
|
||||||
@ -990,7 +990,7 @@ static int enter_namespaces(int namespace_options, uid_t namespace_uid, gid_t na
|
|||||||
fd = open("/proc/self/gid_map", O_WRONLY);
|
fd = open("/proc/self/gid_map", O_WRONLY);
|
||||||
if(fd == -1)
|
if(fd == -1)
|
||||||
{
|
{
|
||||||
EXILE_LOG_ERROR("Failed to open /proc/self/gid_map for writing");
|
EXILE_LOG_ERROR("Failed to open /proc/self/gid_map for writing\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
writesize = snprintf(buf, sizeof(buf), "%u %u 1\n", namespace_gid, current_gid);
|
writesize = snprintf(buf, sizeof(buf), "%u %u 1\n", namespace_gid, current_gid);
|
||||||
|
Loading…
Reference in New Issue
Block a user