(self)
return (passwd, group)
Select authentication files to use /etc/passwd /etc/group
Select authentication files to use /etc/passwd /etc/group
Select authentication files to use / etc / passwd / etc / group
def _select_auth_files(self):
        """Select authentication files to use /etc/passwd /etc/group"""
        cont_passwd = self.container_root + "/etc/passwd"
        cont_group = self.container_root + "/etc/group"
        bind_passwd = self.container_dir + FileBind.orig_dir + "/#etc#passwd"
        bind_group = self.container_dir + FileBind.orig_dir + "/#etc#group"
        #
        if os.path.islink(cont_passwd) and os.path.isfile(bind_passwd):
            passwd = bind_passwd
        else:
            passwd = cont_passwd
        if os.path.islink(cont_group) and os.path.isfile(bind_group):
            group = bind_group
        else:
            group = cont_group
        if self._is_mountpoint("/etc/passwd"):
            passwd = self._is_mountpoint("/etc/passwd")
        if self._is_mountpoint("/etc/group"):
            group = self._is_mountpoint("/etc/group")
        return (passwd, group)
def _select_auth_files ( self ) : cont_passwd = self . container_root + "/etc/passwd" cont_group = self . container_root + "/etc/group" bind_passwd = self . container_dir + FileBind . orig_dir + "/#etc#passwd" bind_group = self . container_dir + FileBind . orig_dir + "/#etc#group" # if os . path . islink ( cont_passwd ) and os . path . isfile ( bind_passwd ) : passwd = bind_passwd else : passwd = cont_passwd if os . path . islink ( cont_group ) and os . path . isfile ( bind_group ) : group = bind_group else : group = cont_group if self . _is_mountpoint ( "/etc/passwd" ) : passwd = self . _is_mountpoint ( "/etc/passwd" ) if self . _is_mountpoint ( "/etc/group" ) : group = self . _is_mountpoint ( "/etc/group" ) return ( passwd , group )