not having revoke() or not being able to revoke() [Debian 4.0] is insecure
This commit is contained in:
5
misc.c
5
misc.c
@ -6,7 +6,7 @@
|
|||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.47 2007/01/18 15:50:32 tg Exp $\t"
|
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.48 2007/01/18 20:48:23 tg Exp $\t"
|
||||||
MKSH_SH_H_ID);
|
MKSH_SH_H_ID);
|
||||||
|
|
||||||
#undef USE_CHVT
|
#undef USE_CHVT
|
||||||
@ -1342,8 +1342,9 @@ parse_T(char *fn)
|
|||||||
warningf(false, "chvt: cannot chmod 0600 %s", fn);
|
warningf(false, "chvt: cannot chmod 0600 %s", fn);
|
||||||
#if HAVE_REVOKE
|
#if HAVE_REVOKE
|
||||||
if (revoke(fn))
|
if (revoke(fn))
|
||||||
warningf(false, "chvt: cannot revoke %s", fn);
|
|
||||||
#endif
|
#endif
|
||||||
|
warningf(false, "chvt: cannot revoke %s, new shell is"
|
||||||
|
" potentially insecure", fn);
|
||||||
|
|
||||||
if ((fd = open(fn, O_RDWR)) == -1) {
|
if ((fd = open(fn, O_RDWR)) == -1) {
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
Reference in New Issue
Block a user