Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 428512

Summary: sys-process/fcron-3.0.6-r2: pam_loginuid(fcron:session): set_loginuid failed_
Product: Gentoo Linux Reporter: Amadeusz Żołnowski (RETIRED) <aidecoe>
Component: New packagesAssignee: Wolfram Schlich (RETIRED) <wschlich>
Status: RESOLVED CANTFIX    
Severity: normal CC: flameeyes
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-07-29 09:45:49 UTC
I get the following failure logged by syslog every minute:

Jul 29 11:27:00 [fcron] pam_loginuid(fcron:session): set_loginuid failed_

The context is following:

Jul 29 11:43:00 [fcron] pam_unix(fcron:session): session opened for user aidecoe by (uid=0)
Jul 29 11:43:00 [fcron] pam_loginuid(fcron:session): set_loginuid failed_
Jul 29 11:43:00 [fcron] pam_unix(fcron:session): session opened for user aidecoe by (uid=0)
Jul 29 11:43:02 [fcron] pam_unix(fcron:session): session closed for user aidecoe
                - Last output repeated twice -
Jul 29 11:44:00 [fcron] pam_loginuid(fcron:session): set_loginuid failed_
Jul 29 11:44:00 [fcron] pam_unix(fcron:session): session opened for user aidecoe by (uid=0)
Jul 29 11:44:00 [fcron] pam_loginuid(fcron:session): set_loginuid failed_
Jul 29 11:44:00 [fcron] pam_unix(fcron:session): session opened for user aidecoe by (uid=0)
Jul 29 11:44:02 [fcron] pam_unix(fcron:session): session closed for user aidecoe

Reproducible: Always
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-29 16:06:52 UTC
Do you have the audit feature enabled in the kernel? If not, enable it.
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-07-29 16:13:20 UTC
Yes, I have it enabled. It is required for some time by other packages.

$ zgrep AUDIT /proc/config.gz 
CONFIG_AUDIT_ARCH=y
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_AUDIT_WATCH=y
CONFIG_AUDIT_TREE=y
CONFIG_AUDIT_LOGINUID_IMMUTABLE=y
CONFIG_NETFILTER_XT_TARGET_AUDIT=m
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-29 16:19:02 UTC
Ah! loginuid_immutable is the problem. Try disabling that one and let me know.
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-07-29 20:22:43 UTC
(In reply to comment #3)
> Ah! loginuid_immutable is the problem. Try disabling that one and let me
> know.

Error no longer appears, but shouldn't fcron respect this setting?
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-29 20:26:59 UTC
The problem is that it probably started with a different loginuid.