[Bug 624290] New: ckermit from contrib repository does not use lockdev, so cannot write to /var/lock
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c0 Summary: ckermit from contrib repository does not use lockdev, so cannot write to /var/lock Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Update Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: siegbert.baude@gmx.de QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.7) Gecko/20100714 SUSE/3.6.7-1.2 Firefox/3.6.7 Calling kermit tries to create a lock file in /var/lock, but has no permissions as the owner of this directory changed to root. Thus kermit fails to work. Reproducible: Always Steps to Reproduce: 1.kermit -l /dev/ttyUSB0 Actual Results: Kermit gives an error "/var/lock" and fails to open /dev/ttyUSB0 Expected Results: kermit should have created the lock file and open /dev/ttyUSB0 A workaround is to use "setfacl -m g:dialout:rwX /var/lock", but IMHO kermit should be compiled to use lockdev. The packet installed is: $ pm -q ckermit --info Name : ckermit Relocations: (not relocatable) Version : 8.0.211 Vendor: obs://build.opensuse.org/openSUSE:11.3 Release : 159.1 Build Date: Do 08 Jul 2010 15:10:25 CEST Install Date: Mi 21 Jul 2010 11:29:12 CEST Build Host: build17 Group : Hardware/Modem Source RPM: ckermit-8.0.211-159.1.src.rpm Size : 4669502 License: Artistic License Signature : DSA/SHA1, Do 08 Jul 2010 15:10:56 CEST, Key ID a1acbff63c51f898 URL : http://www.columbia.edu/kermit/ Summary : A Combined Serial and Network Communication Software Package -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c1 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |opensuse-contrib@opensuse.o |ovo.novell.com |rg --- Comment #1 from Marcus Meissner <meissner@novell.com> 2010-07-22 13:56:16 UTC --- why has this package no maintainer assigned in contrib? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c2 Joop Boonen <joop.boonen@kacang.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Joop Boonen <joop.boonen@kacang.org> 2010-07-22 17:01:04 UTC --- You can put me as maintainer (worldcitizen). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c Joop Boonen <joop.boonen@kacang.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|opensuse-contrib@opensuse.o |joop.boonen@kacang.org |rg | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c3 Joop Boonen <joop.boonen@kacang.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |siegbert.baude@gmx.de --- Comment #3 from Joop Boonen <joop.boonen@kacang.org> 2010-07-23 06:33:22 UTC --- You can add the user (that uses kermit) to group lock. This should solve the issue without modifying the ownership of the directory. Can you please test if it works for you? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c4 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED CC| |puzel@novell.com InfoProvider|siegbert.baude@gmx.de | --- Comment #4 from Petr Uzel <puzel@novell.com> 2010-07-23 06:35:26 UTC --- (In reply to comment #2)
You can put me as maintainer (worldcitizen).
Done (in oS:F:C). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |siegbert.baude@gmx.de -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c5 Siegbert Baude <siegbert.baude@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|siegbert.baude@gmx.de | --- Comment #5 from Siegbert Baude <siegbert.baude@gmx.de> 2010-07-23 13:40:42 UTC --- (In reply to comment #3)
As the workaround I gave above with "setfacl", this one works, too. But I believe this to be a workaround and not the solution, as the specific user has write permissions to the /var/lock directory then, which is more than he needs to open the serial line. The solution of the same problem for minicom was to use lockdev, as was decided by Novell in this bug report: https://bugzilla.novell.com/show_bug.cgi?id=552095#c17 According to the kermit documentation, this is already available: http://www.columbia.edu/kermit/ckuins.html#x10 As lockdev seems to be the way Novell wants to go, I think we should just switch kermit to lockdev, too. See here: https://features.opensuse.org/308360 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c6 Joop Boonen <joop.boonen@boonen.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |siegbert.baude@gmx.de --- Comment #6 from Joop Boonen <joop.boonen@boonen.org> 2010-07-25 23:23:57 UTC --- I've created a patch for the devel version of ckermit. Can you please test the patched version. I've tested it, it looks fine to me. It can be found here: http://software.opensuse.org/ymp/home:worldcitizen/openSUSE_11.3/ckermit-dev... Later I'll backport this patch to the stable ckermit version. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=624290 http://bugzilla.novell.com/show_bug.cgi?id=624290#c7 Siegbert Baude <siegbert.baude@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|siegbert.baude@gmx.de | --- Comment #7 from Siegbert Baude <siegbert.baude@gmx.de> 2010-07-27 20:33:23 UTC --- (In reply to comment #6)
Can you please test the patched version. I've tested it, it looks fine to me.
Looks good for me, too: coocoo@lilith:~> groups users dialout video coocoo@lilith:~> ls -ld /var/lock drwxrwxr-t 6 root lock 4096 27. Jul 22:17 /var/lock coocoo@lilith:~> getfacl /var/lock getfacl: Entferne führende '/' von absoluten Pfadnamen # file: var/lock # owner: root # group: lock # flags: --t user::rwx group::rwx other::r-x coocoo@lilith:~> kermit -l /dev/ttyS0 >/dev/null 2>&1 On another terminal: coocoo@lilith:~> ps a|grep kermit 4980 pts/1 S+ 0:00 kermit -l /dev/ttyS0 coocoo@lilith:~> ls -l /var/lock/L* -rw-rw-r-- 3 coocoo lock 11 27. Jul 22:17 /var/lock/LCK...4980 -rw-rw-r-- 3 coocoo lock 11 27. Jul 22:17 /var/lock/LCK..ttyS0 -rw-rw-r-- 3 coocoo lock 11 27. Jul 22:17 /var/lock/LK.000.004.064 coocoo@lilith:~> After quitting kermit: coocoo@lilith:~> ls -l /var/lock/L* ls: cannot access /var/lock/L*: No such file or directory Good work, Joop! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=624290 https://bugzilla.novell.com/show_bug.cgi?id=624290#c8 Joop Boonen <joop.boonen@boonen.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #8 from Joop Boonen <joop.boonen@boonen.org> 2011-04-30 21:46:02 UTC --- This fix will be incorporated in ckermit 9.0 that will be officially released on or before June 30th http://www.columbia.edu/kermit/ck80.html -- 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.
participants (1)
-
bugzilla_noreply@novell.com