Bug 751279

Summary: Suspicious message in /var/log/secure when ifup or ifdown a ppp device
Product: [Fedora] Fedora Reporter: Michael Weidner <micha>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: johannbg, lpoetter, metherid, mschmidt, msekleta, notting, plautrba, systemd-maint
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-37-11.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-30 20:59:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael Weidner 2011-11-04 06:59:57 UTC
Description of problem:

When I start or stop my ppp-devices with ifup or ifdown (I have two: a ADSL ppp device and a pptp ppp device, happens on both), the following appears in /var/log/secure every time:

Nov  3 05:00:05 han su: pam_systemd(su:session): Failed to create session: Invalid argument

Version-Release number of selected component (if applicable):

ppp-2.4.5-18.fc16.i686

How reproducible:

Every time ifup or ifdown for a ppp device is called.

Steps to Reproduce:
1. Start or stop a ppp device with ifup or ifdown as root
  
Actual results:

Suspicious message in /var/log/secure, see above

Expected results:




Additional info:

Comment 1 Michal Sekletar 2011-11-07 07:01:43 UTC
Because error message was logged by pam_systemd(systemd37/src/pam-module.c), thus changing the component to systemd. If appropriate switch component back to ppp.

Comment 2 Michal Schmidt 2011-11-07 10:07:06 UTC
What exact version of systemd do you have installed?

Comment 3 Michael Weidner 2011-11-07 10:27:38 UTC
systemd-36-3.fc16.i686

Comment 4 Michal Schmidt 2011-11-07 11:33:08 UTC
Could you try with systemd-37-3.fc16 (currently in updates-testing)? It fixes bug 736756 and though the error message is not identical, the cause of it may be related.

Comment 5 Michael Weidner 2011-11-07 12:29:56 UTC
No change with systemd-37-3.fc16:

# rpm -q systemd
systemd-37-3.fc16.i686
# ifdown ppp9 ; sleep 5 ; ifup ppp9
# tail -n6 /var/log/secure
Nov  7 13:02:07 han su: pam_systemd(su:session): Failed to create session: Invalid argument
Nov  7 13:02:07 han su: pam_unix(su:session): session opened for user root by (uid=0)
Nov  7 13:02:07 han su: pam_unix(su:session): session closed for user root
Nov  7 13:02:22 han su: pam_systemd(su:session): Failed to create session: Invalid argument
Nov  7 13:02:22 han su: pam_unix(su:session): session opened for user root by (uid=0)
Nov  7 13:02:22 han su: pam_unix(su:session): session closed for user root

Comment 6 Michal Schmidt 2011-11-07 12:59:38 UTC
I'm curious why "su" is run at all.
Do you have any files in /var/run/netreport/ ? What does this say?:
  for p in /var/run/netreport/*; do ls -l /proc/$(basename $p)/exe; done

Comment 7 Michal Schmidt 2011-11-07 13:09:04 UTC
This is reproducible with:
  su michich -c "echo hello" </dev/null

Comment 8 Michael Weidner 2011-11-07 13:12:49 UTC
# for p in /var/run/netreport/*; do ls -l /proc/$(basename $p)/exe; done
lrwxrwxrwx 1 root root 0  7. Nov 13:35 /proc/2290/exe -> /sbin/ppp-watch

Comment 9 Michal Schmidt 2011-12-14 02:24:58 UTC
This is fixed upstream by:

http://cgit.freedesktop.org/systemd/commit/?id=1dc995370987660ff045ff4d7cf512da0390cf96

Comment 10 Fedora Update System 2012-01-11 15:02:03 UTC
systemd-37-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/systemd-37-6.fc16

Comment 11 Fedora Update System 2012-01-11 20:57:43 UTC
Package systemd-37-6.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-37-6.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0409/systemd-37-6.fc16
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2012-01-16 02:25:17 UTC
Package systemd-37-7.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-37-7.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0409/systemd-37-7.fc16
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2012-01-17 20:23:07 UTC
Package systemd-37-8.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-37-8.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0409/systemd-37-8.fc16
then log in and leave karma (feedback).

Comment 14 Fedora Update System 2012-01-22 22:54:30 UTC
Package systemd-37-10.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-37-10.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0409/systemd-37-10.fc16
then log in and leave karma (feedback).

Comment 15 Fedora Update System 2012-01-26 22:58:18 UTC
Package systemd-37-11.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-37-11.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0409/systemd-37-11.fc16
then log in and leave karma (feedback).

Comment 16 Fedora Update System 2012-01-30 20:59:03 UTC
systemd-37-11.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.