History log of /openbsd-src/libexec/getty/main.c (Results 1 – 25 of 56)
Revision Date Author Comments
# 4538572b 19-Jul-2024 bluhm <bluhm@openbsd.org>

unveil(2) /etc/gettytab.db in getty(8) to avoid possible violation.

OK deraadt@


# 73fe6daa 28-Apr-2024 florian <florian@openbsd.org>

gmtime(3) / locatime(3) can fail when timestamps are way off.

Add missing error checks to all calls under libexec/

Input & OK millert


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# 9e74ecfa 23-Jun-2019 rob <rob@openbsd.org>

Explicitly lock unveil. Noticed when testing the recent ps(1) commit exposing
the unveil state of running processes.
ok deraadt@


# 9542d0df 01-May-2019 florian <florian@openbsd.org>

Pull tname initialization up since it's used in an error path.
Pointed out by jsg, just fix it deraadt@


# 3e05b07b 17-Nov-2018 deraadt <deraadt@openbsd.org>

need to closefrom(0) before execve(), otherwise tty isn't properly
'hung up'; some testing by Theodore Wynnychenko


# bf6d4de2 15-Nov-2018 deraadt <deraadt@openbsd.org>

Theodore Wynnychenko discovered the gettytab "lo=path" feature didn't work
anymore with unveil wired to /usr/bin/login. So let's parse gettytab a bit
earlier to learn which login path to unveil. Lat

Theodore Wynnychenko discovered the gettytab "lo=path" feature didn't work
anymore with unveil wired to /usr/bin/login. So let's parse gettytab a bit
earlier to learn which login path to unveil. Later in the loop gettytab is
re-parsed, if the login changes re-exec getty to reach the unveil from the top.
ok millert, also discussed with mestre

show more ...


# 239b4933 24-Sep-2018 deraadt <deraadt@openbsd.org>

unveil(2) in getty. This has been in snaps for more than 2 months,
since I worry that a mistake in here will cause significant grief.


# 2d313e67 29-May-2017 deraadt <deraadt@openbsd.org>

do not need dev[] wasting bss space


# ba2216bd 28-May-2017 deraadt <deraadt@openbsd.org>

Do a better job of not printing sequences we cannot reverse in DELETE or
KILL. Therefore we can do a better job cleaning up.
testing by benno


# 979c5072 27-May-2017 deraadt <deraadt@openbsd.org>

Stop echoing ANSI sequences back to the console, by expanding ESC character
to literal ^[. This makes getty interaction appear more like login, and
stops a mid-ANSI sequence parsing problem that mes

Stop echoing ANSI sequences back to the console, by expanding ESC character
to literal ^[. This makes getty interaction appear more like login, and
stops a mid-ANSI sequence parsing problem that messed up login, making it
freeze the session until timeout.
ok tedu fcambus

show more ...


# 47625c84 27-May-2017 deraadt <deraadt@openbsd.org>

Stop supporting primordial # (erase) and @ (kill) sequences.
ok tedu


# 8343b2a3 27-May-2017 tedu <tedu@openbsd.org>

remove the getname() code trying to handle baud < 1200 terminals.
leave the special down under code until somebody unearths why it exists.


# 2acff669 23-Jan-2017 deraadt <deraadt@openbsd.org>

pledge a tiny bit later. This results in the specified tty being
opened before the first pledge call.
testing by tb and benno and others


# c9899b11 16-Mar-2016 krw <krw@openbsd.org>

More "(<blah> *)0" -> NULL, avoiding any stdarg functions.

Feedback millert@ kettenis@


# ae7aa16a 16-Nov-2015 deraadt <deraadt@openbsd.org>

Observe that FIOASYNC clearing for stdin is only done in the case where
getty receives the fd from init, so hoist it upwards. Since revoke(2)
is now allowed by pledge "rpath tty", the pledges can be

Observe that FIOASYNC clearing for stdin is only done in the case where
getty receives the fd from init, so hoist it upwards. Since revoke(2)
is now allowed by pledge "rpath tty", the pledges can be hoisted much
higher.
ok millert semarie tedu guenther

show more ...


# d71246c3 06-Nov-2015 tedu <tedu@openbsd.org>

further PPP reduction, hint from sthen


# 54eda240 06-Nov-2015 tedu <tedu@openbsd.org>

remove ppplogin support. ok sthen


# cfbffc8c 16-Oct-2015 deraadt <deraadt@openbsd.org>

Hoist clearing of FIOASYNC to much earlier, then getty can use
pledge "stdio rpath fattr proc exec tty".


# 30d77a25 16-Jul-2015 tedu <tedu@openbsd.org>

remove ancient support for edited hostnames. ok deraadt (long ago)


# 65746b0c 14-Apr-2015 millert <millert@openbsd.org>

Log a more useful error message if ttyname() fails. OK deraadt@


# 52dc30e1 16-Jan-2015 deraadt <deraadt@openbsd.org>

adjust to HOST_NAME_MAX+1 & LOGIN_NAME_MAX


# 036c7a34 19-Nov-2014 krw <krw@openbsd.org>

Nuke yet more obvious #include duplications.

ok deraadt@


# 14434de6 18-Nov-2014 krw <krw@openbsd.org>

Nuke some obvious #include duplications.

ok espie@ deraadt@ millert@ tedu@


# 4207a9b6 27-Nov-2013 deraadt <deraadt@openbsd.org>

unsigned char for ctype
ok okan kettenis


123