Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78274 - agetty changes permissions of ttys
Summary: agetty changes permissions of ttys
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-16 13:59 UTC by Fabio Rossi
Modified: 2005-03-15 12:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
agetty.patch (agetty.patch,471 bytes, patch)
2005-01-19 03:33 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2005-01-16 13:59:07 UTC
When agetty opens a tty, it changes it's owner and permissions. I don't know the reason of doing so but it's annoying (an user application can't open anymore the ttys). I suggest the following patch who removes two lines of code in agetty.c in util-linux package (version 2.12i):

@@ -700,8 +712,8 @@
      * Let us use 0600 for Linux for the period between getty and login
      */

-    (void) chown(tty, 0, 0);                   /* root, sys */
-    (void) chmod(tty, 0600);                   /* 0622: crw--w--w- */
+/*    (void) chown(tty, 0, 0);*/                       /* root, sys */
+/*    (void) chmod(tty, 0600);*/                       /* 0622: crw--w--w- */
     errno = 0;                                 /* ignore above errors */
 }
Comment 1 Fabio Rossi 2005-01-19 03:33:06 UTC
Created attachment 48933 [details, diff]
agetty.patch
Comment 2 Fabio Rossi 2005-03-15 12:12:43 UTC
Sorry, my fault :-(