[Bug 278890] New: Hotplug does not work when /var/run is cleared on boot
https://bugzilla.novell.com/show_bug.cgi?id=278890 Summary: Hotplug does not work when /var/run is cleared on boot Product: openSUSE 10.2 Version: Final Platform: x86 OS/Version: openSUSE 10.2 Status: NEW Severity: Normal Priority: P5 - None Component: Hotplug AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: tvrtko@ursulin.net QAContact: qa@suse.de Actually I mounted tmpfs over /var/run which I am not certain is a valid thing to do. When I did that, hotplug stopped working (both for usb-storage and cd media), there were some cron errors (related to pam_loginsuid I believe) and cpufreqd complained about a missing directory. FHS (http://www.pathname.com/fhs/2.2/fhs-5.13.html) says that files in /var/run must be cleared on boot but says nothing about directories. So it is not clear if they must be preserved or can be removed as well. Whatever is the case, I am submitting this for investigation. I think I saw some distro (Debian 4?) use /var/run on tmpfs and thought about trying that myself... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=278890 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |tvrtko@ursulin.net ------- Comment #1 from mhorvath@novell.com 2007-06-12 04:35 MST ------- Could you please post the error messages and your /var/log/messages ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=278890 ------- Comment #2 from tvrtko@ursulin.net 2007-06-12 12:04 MST ------- Created an attachment (id=145692) --> (https://bugzilla.novell.com/attachment.cgi?id=145692&action=view) Error message screenshot Inserting any media (including CDs) produces an insertian dialog, but when I try to open it this error message pops out. Media will not be mounted at this stage (confirmed in /proc/mounts). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=278890 ------- Comment #3 from tvrtko@ursulin.net 2007-06-12 12:05 MST ------- Created an attachment (id=145693) --> (https://bugzilla.novell.com/attachment.cgi?id=145693&action=view) /var/log/messages /var/log/messages for the boot in question. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=278890 ------- Comment #4 from tvrtko@ursulin.net 2007-06-12 12:06 MST ------- I have added the requested attachments. Also, for completness sake, below is the /etc/fstab line which when uncommented creates havoc. #tmpfs /var/run tmpfs defaults,noatime,nodiratime,size=4m 0 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=278890 ------- Comment #5 from mhorvath@novell.com 2007-06-15 08:35 MST ------- Thanks, please attach whole /etc/PolicyKit/privilege.d/* and output of 'rpm -qv dbus-1', 'rpm -qv udev', 'rpm -qv hal' and 'polkit-list-privileges' (this one as user, not root). I don't think this issue is related to the tmpfs mount configuration. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=278890 ------- Comment #6 from tvrtko@ursulin.net 2007-06-16 01:40 MST ------- Here it goes: tvrtko@astrid:~> for f in /etc/PolicyKit/privilege.d/*; do echo "--------- $f ---------"; cat $f; done --------- /etc/PolicyKit/privilege.d/desktop-console.privilege --------- # This privilege signfies that users holding it are logged into a # physical console attached to the system. Thus, it is useful for # other privileges for manipulating local devices to simply require # this privilege. [Privilege] RequiredPrivileges= SufficientPrivileges= Allow= Deny= CanObtain=False CanGrant=False ObtainRequireRoot=True --------- /etc/PolicyKit/privilege.d/hal-power-cpufreq.privilege --------- # This privilege specifies who is allowed to control CPUFreq # via the org.freedesktop.Hal.Device.CPUFreq interface [Privilege] RequiredPrivileges= SufficientPrivileges=desktop-console Allow=uid:root Deny= CanObtain=True CanGrant=True ObtainRequireRoot=False --------- /etc/PolicyKit/privilege.d/hal-power-hibernate.privilege --------- # This privilege specifies who is allowed to hibernate the system. [Privilege] RequiredPrivileges= SufficientPrivileges=desktop-console Allow=uid:root Deny= CanObtain=True CanGrant=True ObtainRequireRoot=False --------- /etc/PolicyKit/privilege.d/hal-power-poweroff.privilege --------- # This privilege specifies who is allowed to power off the system. [Privilege] RequiredPrivileges=desktop-console SufficientPrivileges= Allow=uid:__all__ Deny= CanObtain=True CanGrant=True ObtainRequireRoot=False --------- /etc/PolicyKit/privilege.d/hal-power-reboot.privilege --------- # This privilege specifies who is allowed to reboot the system. [Privilege] RequiredPrivileges=desktop-console SufficientPrivileges= Allow=uid:__all__ Deny= CanObtain=True CanGrant=True ObtainRequireRoot=False --------- /etc/PolicyKit/privilege.d/hal-power-standby.privilege --------- # This privilege specifies who is allowed to suspend the system. [Privilege] RequiredPrivileges= SufficientPrivileges=desktop-console Allow=uid:root Deny= CanObtain=True CanGrant=True ObtainRequireRoot=False --------- /etc/PolicyKit/privilege.d/hal-power-suspend.privilege --------- # This privilege specifies who is allowed to suspend the system. [Privilege] RequiredPrivileges= SufficientPrivileges=desktop-console Allow=uid:root Deny= CanObtain=True CanGrant=True ObtainRequireRoot=False --------- /etc/PolicyKit/privilege.d/hal-storage-fixed-mount-all-options.privilege --------- # This privilege specifies what users can mount volumes from internal # drives using mount options besides those specified in the # volume.mount.valid_options on the volume in question (such as # uid=<userid>). [Privilege] RequiredPrivileges=desktop-console SufficientPrivileges= Allow= Deny= CanObtain=True CanGrant=True ObtainRequireRoot=True --------- /etc/PolicyKit/privilege.d/hal-storage-fixed-mount.privilege --------- # This privilege specifies what users can mount volumes from internal # drives using only the mount options as specified by the property # volume.mount.valid_options on the volume in question. If mount # options besides these are needed, one will need the privilege # hal-storage-fixed-mount-all-options.privilege. # [Privilege] RequiredPrivileges=desktop-console SufficientPrivileges= Allow= Deny= CanObtain=True CanGrant=True ObtainRequireRoot=True --------- /etc/PolicyKit/privilege.d/hal-storage-removable-mount-all-options.privilege --------- # This privilege specifies what users can mount volumes from removable # or hotpluggable drives using mount options besides those specified # in the volume.mount.valid_options on the volume in question (such as # uid=<userid>). [Privilege] RequiredPrivileges=desktop-console SufficientPrivileges= Allow= Deny= CanObtain=True CanGrant=True ObtainRequireRoot=False --------- /etc/PolicyKit/privilege.d/hal-storage-removable-mount.privilege --------- # This privilege specifies what users can mount volumes from removable # or hotpluggable drives using only the mount options as specified by # the property volume.mount.valid_options on the volume in # question. If mount options besides these are needed, one will need # the privilege hal-removable-fixed-mount-all-options.privilege. [Privilege] RequiredPrivileges=desktop-console SufficientPrivileges= Allow=uid:__all__ Deny= CanObtain=True CanGrant=True ObtainRequireRoot=False tvrtko@astrid:~> rpm -qv dbus-1 dbus-1-1.0.0-7 tvrtko@astrid:~> rpm -qv udev udev-103-12 tvrtko@astrid:~> rpm -qv hal hal-0.5.8_git20061106-31.3 tvrtko@astrid:~> polkit-list-privileges privilege desktop-console (temporary) privilege hal-power-cpufreq (temporary) privilege hal-power-hibernate (temporary) privilege hal-power-poweroff privilege hal-power-reboot privilege hal-power-standby (temporary) privilege hal-power-suspend (temporary) privilege hal-storage-removable-mount -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=278890#c7
--- Comment #7 from Matej Horvath
https://bugzilla.novell.com/show_bug.cgi?id=278890#c8
--- Comment #8 from Tvrtko Ursulin
https://bugzilla.novell.com/show_bug.cgi?id=278890#c9
--- Comment #9 from Tvrtko Ursulin
https://bugzilla.novell.com/show_bug.cgi?id=278890
Matej Horvath
https://bugzilla.novell.com/show_bug.cgi?id=278890#c10
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=278890#c11
Ludwig Nussel
participants (1)
-
bugzilla_noreply@novell.com