user: function naming
authorRobert Swiecki <robert@swiecki.net>
Sun, 31 Mar 2019 13:16:24 +0000 (15:16 +0200)
committerRobert Swiecki <robert@swiecki.net>
Sun, 31 Mar 2019 13:16:24 +0000 (15:16 +0200)
user.cc

diff --git a/user.cc b/user.cc
index 04d9723..674bf4c 100644 (file)
--- a/user.cc
+++ b/user.cc
@@ -77,7 +77,7 @@ static bool setResUid(uid_t uid) {
        return true;
 }
 
-static bool setGroups(nsjconf_t* nsjconf, pid_t pid) {
+static bool setGroupsDeny(nsjconf_t* nsjconf, pid_t pid) {
        /*
         * No need to write 'deny' to /proc/pid/setgroups if our euid==0, as writing to
         * uid_map/gid_map will succeed anyway
@@ -214,7 +214,7 @@ static bool uidGidMap(nsjconf_t* nsjconf, pid_t pid) {
 }
 
 bool initNsFromParent(nsjconf_t* nsjconf, pid_t pid) {
-       if (!setGroups(nsjconf, pid)) {
+       if (!setGroupsDeny(nsjconf, pid)) {
                return false;
        }
        if (!nsjconf->clone_newuser) {