Nowadays you do not bisect a commit, but throw the problem at an AI. This 
pointed to a change that I traced to this one-line pam commit: 
https://github.com/linux-pam/linux-pam/commit/20047e7fdcfff6633d8201f0954be51f6378f1ae
I need to check if that solves the problem.

commit 20047e7fdcfff6633d8201f0954be51f6378f1ae
Author: Tomas Mraz <[email protected]>
Date:   Thu Dec 17 17:43:27 2015 +0100

    Relax the conditions for fatal failure on auditing.
    
    The PAM library calls will not fail anymore for any uid if the return
    value from the libaudit call is -EPERM.
    
    * libpam/pam_audit.c (_pam_audit_writelog): Remove check for uid != 0.

diff --git a/libpam/pam_audit.c b/libpam/pam_audit.c
index 24fb799a..97a9a929 100644
--- a/libpam/pam_audit.c
+++ b/libpam/pam_audit.c
@@ -53,7 +53,7 @@ _pam_audit_writelog(pam_handle_t *pamh, int audit_fd, int 
type,
   pamh->audit_state |= PAMAUDIT_LOGGED;
 
   if (rc < 0) {
-      if (rc == -EPERM && getuid() != 0)
+      if (rc == -EPERM)
           return 0;
       if (errno != old_errno) {
           old_errno = errno;

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2158250

Title:
  mmdebstrap fails to build images for xenial and older

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mmdebstrap/+bug/2158250/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to