]> git.ipfire.org Git - thirdparty/shadow.git/commit
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 22 Nov 2008 23:56:11 +0000 (23:56 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 22 Nov 2008 23:56:11 +0000 (23:56 +0000)
commita324a7f13fcb0dcae6706921f209dd0bfa6a6f94
tree687c6f8ad09f7bf2398f30526b7b4496b2504553
parenteb4097180b594215aa3d5d5cf67a172bf747e4af
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
utmp.c to chowntty.c. checkutmp() now only uses an existing utmp
entry if the pid matches and ut_line matches with the current tty.
This fixes a possible DOS when entries can be forged in the utmp
file.
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
tty argument from chown_tty. chown_tty always changes stdin and
does not need this argument anymore.
ChangeLog
NEWS
libmisc/chowntty.c
libmisc/utmp.c
src/login.c