Bug 213369
Summary: | konsole does not register to utmp (again) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ville Skyttä <scop> |
Component: | kdebase | Assignee: | Than Ngo <than> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 6 | CC: | chris.stone, covex, dennis, kzak, laurent.rineau__fedora, pomec, rdieter, sandmann, umar |
Target Milestone: | --- | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-02-14 17:33:20 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ville Skyttä
2006-11-01 06:28:41 UTC
Sure enough, even though kdelibs includes BuildRequires: libutempter-devel and %configure --with-utempter and configure checks: checking for addToUtmp in -lutempter... yes It doesn't actually link against it. As Ville pointed out, the only reference to it anywhere in kdelibs is kdecore/kpty.cpp, and that's only for directly using (the non-existent) /usr/sbin/utempter FYI: xterm also does not update utmp when run as anybody else than root. Any ETA for a fix? This is something that affects quite a few things. *** Bug 216562 has been marked as a duplicate of this bug. *** I am seeing this also. Changing priority and status. This should be considered a security issue. (In reply to comment #5) > I am seeing this also. > > Changing priority and status. This should be considered a security issue. Could you clarify why do you think this is a security issue? It could give a sysadmin a false sense that no one is logged in and doing anything. resulting in them not checking on what users are doing. If a system is configured to use gdm kde sessions dont show up at all w shows 0 users. (In reply to comment #7) > It could give a sysadmin a false sense that no one is logged in and doing > anything. resulting in them not checking on what users are doing. If a system > is configured to use gdm kde sessions dont show up at all w shows 0 > users. utmp is _not_ a reliable source of imformation about what are people doing, it is just informative, for users' convenence. There's no way to force user to have an utmp entry. If he wants he can start a program, and log off from terminal (emulator)?. If an operator wants to see what's going on, he uses ps(8). I am removing the Security keyword. Re: comment #7, Dennis, (at least afaik) it is only shells started from konsole that are missing from utmp. Rex, I did not test bt it was reported in #fedora-extras that if you use gdm your whole session fails to register. and if you do a w it will show 0 users (In reply to comment #9) > Re: comment #7, Dennis, (at least afaik) it is only shells started from konsole > that are missing from utmp. # w 22:08:07 up 11 min, 0 users, load average: 0.10, 0.24, 0.20 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT You can get this result by using gdm and running w from within a konsole, so is gdm broken also? When I switched to kdm I see the login for kdm. Has anyone tried using xdm and xterms? I bet those dont work either. RE: gdm Hmm, offhand, sounds like a gdm buglet to me. Regardless, that's a another/separate (but related, of course) issue to *this* one. The external bug is reported against freebsd. It could be that its the same thing however, just need to extend the platforms/OS. For whoever is in charge of this bug and Fedora CVS: I have built all packages of KDE 3.5.6 for FC6+updates. The utmp registration works fine without any patches for me. When I add the patch you just checked into cvs Patch41, it no longer works! FYI Sammy, i assume you have changed libutempter. It cannot work if you are using libutempter-1.1.4-3.fc6. Could you please check where the utempter is installed on your machine? Thanks Well, I am using: ===================================== $ rpm -q -a | grep libutempter libutempter-1.1.4-3.fc6 libutempter-devel-1.1.4-3.fc6 libutempter-devel-1.1.4-3.fc6 libutempter-1.1.4-3.fc6 ====================================== The "w" command at this instant shows: ====================================== $ w 09:28:29 up 20:03, 5 users, load average: 4.66, 2.89, 1.33 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT umar :0 - 08:32 ?xdm? 3:32 0.03s /bin/sh /usr/bin/startkde umar pts/0 - 08:32 55:59 0.00s 0.25s kded --new-startup umar pts/1 - 08:33 0.00s 0.04s 0.00s w umar pts/2 - 09:19 6:48 1.31s 0.02s /bin/bash umar pts/3 - 09:22 5:42 0.13s 0.02s /bin/bash ============================================== The spec files are essentially the same. I just added few patches from svn commits that does not have anything to do with this. When I used the above patch the "w" command produced nothing. I rechecked the final version of kpty.cpp file and it is the unpatched one (all the lines deleted in that patch are there). The last command is also showind all the sessions as login. The config.log file sais: ======================================= configure:41982: gcc -o conftest -DNDEBUG -O2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DQT_THREAD_SUPPORT -D_REENTRANT conftest.c -lutempter >&5 configure:41988: $? = 0 configure:41992: test -z || test ! -s conftest.err configure:41995: $? = 0 configure:41998: test -s conftest configure:42001: $? = 0 configure:42014: result: yes =============================================================== ac_cv_lib_utempter_addToUtmp=yes =============================================================== LIBUTEMPTER='-lutempter' =============================================================== My /usr/include/utempter.h file has: ==================================================================== /* New interface. */ extern int utempter_add_record (int master_fd, const char *hostname); extern int utempter_remove_record (int master_fd); extern int utempter_remove_added_record (void); extern void utempter_set_helper (const char *pathname); /* Old interface. */ extern void addToUtmp (const char *pty, const char *hostname, int master_fd); extern void removeFromUtmp (void); extern void removeLineFromUtmp (const char *pty, int master_fd); ====================================================================== xterm and kdm seem to be working now with the latest update today. konsole still not working. This bug is very puzzling to me. I build the rpm "without" the patch and it worked for konsole. Today I rebuilt it and now it is not working for konsole on i386 and working for kdm on x86_64. I will check konsole at the office on x86_64 tomorrow. I have been noticing this behavior though, it sometimes works and sometimes doesn't (meaning from one build to another). OK. Some more info: I build FC6 kdelibs with the NEW utempter patch used in rawhide. Now, the kdelibs is explicitly linked with libutempter. Also, if you do ldd /usr/bin/konsole it shows link to libutempter. However, 1. For root logins everything is working correctly (including konsole). 2. For ordinary users only kdm is showing and no konsole. FYI Umar (In reply to comment #21) > 1. For root logins everything is working correctly (including konsole). > 2. For ordinary users only kdm is showing and no konsole. What is your SELinux status? (Use "getenforce" to display the status of SELinux on you system.) $ getenforce Disabled $ getenforce Disabled More info. Startring xterms as a user registers with utmp correctly. Both xterm and konsole are linked with libutempter. However, checking permissions: -rwxr-sr-x 1 root utempter 359136 Jan 18 08:52 /usr/bin/xterm -rwxr-xr-x 1 root root 4352 Feb 14 08:37 /usr/bin/konsole making konsole's group and mode same as xterm results in a working konsole registration. Is this what it should be? Correct, the permission of konsole should be changed like xterm. It's now fixed rawhide. I will build new kdebase inncluding this fix for FC6 soon. Just a friendly reminder that this appears to still need fixing in FC6. |