change and modify times swapped on devpts entries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Description: Ubuntu 13.04
Release: 13.04
In Ubuntu 13.04 the mtime and ctime of devpts devices appears to be swapped. In earlier Ubuntu releases (and all other Linux systems I;ve used) the ctime gets set on the tty device when it is created and only the modify time changes. However, in 13.04 the opposite appears to be the case. For example:
Ubuntu 12.04:
precise [~] % w
13:31:30 up 9 min, 1 user, load average: 0.00, 0.05, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
millert pts/0 172.16.154.1 13:25 0.00s 0.14s 0.00s w
precise [~] % stat `tty`
File: `/dev/pts/0'
Size: 0 Blocks: 0 IO Block: 1024 character special file
Device: bh/11d Inode: 3 Links: 1 Device type: 88,0
Access: (0620/crw--w----) Uid: ( 1000/ millert) Gid: ( 5/ tty)
Access: 2013-05-01 13:31:45.502294725 -0700
Modify: 2013-05-01 13:31:45.502294725 -0700
Change: 2013-05-01 13:25:30.501332348 -0700
Birth: -
In the above you can see that the tty's ctime matches the login time.
Ubuntu 13.04:
raring [~] % w
16:32:37 up 2:43, 2 users, load average: 1.21, 1.02, 0.91
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
millert pts/1 172.16.154.1 14:22 2:10m 0.18s 0.00s w
raring [~] % stat `tty`
File: ‘/dev/pts/1’
Size: 0 Blocks: 0 IO Block: 1024 character special file
Device: bh/11d Inode: 4 Links: 1 Device type: 88,1
Access: (0600/crw-------) Uid: ( 1000/ millert) Gid: ( 5/ tty)
Access: 2013-05-01 14:22:08.374057421 -0400
Modify: 2013-05-01 14:22:08.374057421 -0400
Change: 2013-05-01 14:42:10.798080706 -0400
Birth: -
In 13.04 the modify time is unchanged after login but the change time is updated as the tty is used.
What uses the ctime of devpts ttys you might ask? Sudo does. Sudo uses the ctime of a devpts device node to detect when a tty has been recycled. As a result, sudo on 13.04 will require the user enter their password almost all the time.
affects: | ubuntu → linux-meta (Ubuntu) |
affects: | linux-meta (Ubuntu) → linux (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1175321/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]