#3790 Fix "test-find-uid" and "find_uid-tests" tests
Closed 5 years ago by slev. Opened 5 years ago by slev.
SSSD/ slev/sssd fix_hidepid  into  master

file modified
+8 -1
@@ -90,8 +90,15 @@ 

                        path);

              return EOK;

          }

+         // case of hidepid=1 mount option for /proc

+         if (error == EPERM) {

+             DEBUG(SSSDBG_TRACE_LIBS,

+                   "Proc file [%s] is not permissible, continuing.\n",

+                       path);

+             return EOK;

+         }

          DEBUG(SSSDBG_CRIT_FAILURE,

-               "open failed [%d][%s].\n", error, strerror(error));

+               "open failed [%s][%d][%s].\n", path, error, strerror(error));

          return error;

      }

  

Handle a "hidepid=1" mount option for procfs. One of the affects - this
option makes impermissible non own pid subdirectories on /proc.

Resolves:
https://pagure.io/SSSD/sssd/issue/3789

Pull-Request has been closed by slev

5 years ago
Metadata