aboutsummaryrefslogtreecommitdiffstats
path: root/login-utils
AgeCommit message (Expand)AuthorFilesLines
2024-05-02suL fix use after free on errorKarel Zak1-2/+3
2024-04-29textual: fix some typos and inconsistencies in usage and error messagesBenno Schulenberg1-1/+1
2024-04-16Merge branch 'getwc' of https://github.com/t-8ch/util-linuxKarel Zak1-1/+1
2024-04-15(minor) update sulogin.cLeaflet1-3/+3
2024-04-13treewide: use fgetc() instead of getc()Thomas Weißschuh1-1/+1
2024-03-20last: avoid out of bounds array accessbiubiuzy1-1/+4
2024-03-05su: fix use after free in run_shellTanish Yadav1-5/+4
2024-03-04su, agetty: don't use program_invocation_short_name for openlog()Karel Zak1-1/+1
2024-02-21docs: cleanup public domain license textsKarel Zak1-1/+5
2024-02-14Merge branch 'lslogins-lastlog2' of https://github.com/schubi2/util-linuxKarel Zak3-5/+104
2024-02-02added build option login-lastloginStefan Schubert1-0/+4
2024-02-01su: (man) improve formattingKarel Zak1-4/+4
2024-02-01su: (man) add hint about sessionsKarel Zak1-2/+9
2024-01-30creating lastlog2 database in the testsStefan Schubert1-1/+9
2024-01-30cleanup; Added testcase for lslogins and lastlog2 DBStefan Schubert2-9/+9
2024-01-25lslogins: Add support for lastlog2Stefan Schubert2-4/+91
2024-01-19login: ignore return of audit_log_acct_messageThomas Weißschuh1-10/+10
2024-01-17sulogin: relabel terminal according to SELinux policyChristian Göttsche3-18/+146
2024-01-11Merge branch 'login' of https://github.com/stoeckmann/util-linuxKarel Zak2-9/+11
2024-01-09login: document blank treatment in shell fieldTobias Stoeckmann1-1/+1
2024-01-08runuser|su: Start supporting option -T|--no-ptySebastian Pipping3-1/+15
2024-01-08runuser.1.adoc: Move -m|-p|--preserve-environment in orderSebastian Pipping1-3/+3
2023-12-29login: unify pw_shell script testTobias Stoeckmann1-2/+5
2023-12-29login: simplify name creationTobias Stoeckmann1-6/+5
2023-12-03login-utils: include libgen.h for basename APIKhem Raj1-3/+7
2023-11-28chsh: use libeconf to read /etc/shellsThorsten Kukuk1-13/+1
2023-10-25Make the ways of using output stream consistent in usage()Masatake YAMATO8-16/+16
2023-10-10login: access login.noauth file directlyTobias Stoeckmann1-15/+5
2023-10-10login: use xasprintfTobias Stoeckmann1-5/+2
2023-09-28treewide: use reallocarray to allocated memory that will be reallocatedThomas Weißschuh1-1/+1
2023-09-25Merge branch 'login-terminal' of https://github.com/stoeckmann/util-linuxKarel Zak1-14/+24
2023-09-25Merge branch 'analyzer1' of https://github.com/t-8ch/util-linuxKarel Zak1-1/+1
2023-09-25Merge branch 'realloc' of https://github.com/t-8ch/util-linuxKarel Zak2-4/+4
2023-09-22lslogins: fix realloc() loop allocation sizeThomas Weißschuh1-1/+1
2023-09-22treewide: use (x)reallocarray() when applicableThomas Weißschuh2-4/+4
2023-09-21login: prevent undefined ioctl and tcsetattr callsTobias Stoeckmann1-12/+20
2023-09-21login: use correct terminal fd during setupTobias Stoeckmann1-6/+8
2023-09-19login: Use pid_t for child_pidTobias Stoeckmann1-1/+1
2023-09-19login: move commentTobias Stoeckmann1-4/+4
2023-08-28lslogins: (man) fix -y option formattingThomas Weißschuh1-1/+1
2023-08-23last(1): Document -T option for tab-separated outputTrag Date1-0/+3
2023-08-23last: Add -T option for tab-separated outputTrag Date1-14/+21
2023-07-19login-utils: Report crashes on reboot lines insted of overlapping uptimesTroy Rollo1-1/+6
2023-06-28utmpdump: validate subsecond granularityThomas Weißschuh1-1/+1
2023-06-03misc: constify some fieldsThomas Weißschuh1-1/+1
2023-05-29sulogin: use get_terminal_default_type()Karel Zak1-13/+11
2023-05-23login: fix memory leak [coverity scan]Karel Zak1-6/+5
2023-05-22Merge branch 'agetty-creds' of https://github.com/DaanDeMeyer/util-linuxKarel Zak2-0/+44
2023-05-08sulogin: Don't overwrite TERM if already setDaan De Meyer1-4/+4
2023-05-02sulogin: fix KDGKBMODE ifdefKarel Zak1-7/+7
2023-04-25wrap return in #else directive to avoid dead codeStefan Radu1-1/+2
2023-04-25add return in supam_conv functionStefan Radu1-0/+1
2023-04-16Document new systemd credentials support for agetty and loginDaan De Meyer1-0/+8
2023-04-13login: Initialize noauth from login.noauth credentialDaan De Meyer1-0/+36
2023-04-10last: (man) use correct markupMario Blättermann1-1/+1
2023-03-17wall: use fputs_careful()наб1-1/+1
2023-03-17write: correctly handle wide charactersнаб1-3/+1
2023-02-22lslogins: (man) reorder login statusesKarel Zak1-4/+4
2023-02-13last: use full size of the usernameKarel Zak2-2/+6
2023-01-31lslogins: (man) add note about new accountsKarel Zak1-1/+1
2023-01-31lslogins: explain password statusesKarel Zak1-0/+13
2023-01-24include/c: add functions to print from signal handlersKarel Zak1-4/+2
2023-01-24Merge branch 'signal_safety' of https://github.com/crrodriguez/util-linuxKarel Zak3-17/+7
2023-01-23last: use sizeof_memberThomas Weißschuh1-4/+4
2023-01-15sulogin: only assign to variables written by signal handlersCristian Rodríguez1-2/+2
2023-01-15last: should not use errx/warnx on signal handlersCristian Rodríguez1-14/+4
2023-01-15su-common: bool is a distinct type in c2xCristian Rodríguez1-1/+1
2023-01-11login: never send signals to initSamanta Navarro1-4/+4
2022-12-18meson: fix build with -Dselinux=enabledChris Hofstaedtler1-4/+1
2022-12-13chsh: add -V, update usage()Karel Zak2-6/+16
2022-12-13chfn: use -V for versionKarel Zak2-5/+13
2022-12-12Merge branch 'usr_etc_shells' of https://github.com/schubi2/util-linuxKarel Zak3-35/+16
2022-11-30meson: logindefs.c: handle libeconf dependencyThomas Weißschuh1-4/+2
2022-11-29Supporting vendor given "shells" configuration fileStefan Schubert3-35/+16
2022-11-16llib/pty-session: split PTY and signalfd setupKarel Zak1-0/+2
2022-08-24lslogins: support more password methodsKarel Zak1-24/+42
2022-07-20sulogin: print features on --versionKarel Zak1-1/+9
2022-07-20sulogin: fix includesKarel Zak1-3/+4
2022-06-07lslogins: fix free(): invalid pointerKarel Zak1-1/+4
2022-06-07lslogins: improve prefixes interpretationKarel Zak1-7/+26
2022-04-01libmount: fix typosнаб1-1/+1
2022-03-30meson: update for logindefs moveKarel Zak1-11/+4
2022-03-30build-sys: move login-utils/logindefs.c to libKarel Zak3-645/+6
2022-03-02last: add note about empty files/entries to the man pageKarel Zak1-0/+2
2022-02-14Fix markup in su.1.adocMario Blättermann1-1/+1
2022-02-14lslogins: add -y,--shellKarel Zak2-2/+13
2022-02-14Merge branch 'manpage-fixes' of https://github.com/mariobl/util-linuxKarel Zak3-9/+9
2022-02-14chsh, chfn: remove readline support [CVE-2022-0563]Karel Zak3-54/+9
2022-02-13Fix several adoc files as reported by Helge KreutzmannMario Blättermann3-9/+9
2022-02-07last: don't assume zero terminate stringsKarel Zak1-2/+2
2022-02-07misc: use everywhere mkstemp_cloexec() as fallback to mkostemp()Karel Zak1-2/+3
2022-02-07newgrp.1.adoc: use bold font for command name in synopsisJohannes Altmanninger1-1/+1
2022-02-01man pages: unify output of --help and --versionMario Blättermann12-46/+20
2022-02-01misc: non-Linux portability fixesSamuel Thibault1-0/+4
2022-01-07sulogin: fix compiler warning [-Werror=implicit-fallthrough=]Karel Zak1-0/+5
2022-01-07Merge branch 'syslog-su-pid' of https://github.com/thesamesam/util-linuxKarel Zak1-1/+1
2022-01-07sulogin: Display all kinds of errno during password input.Shigeki Morishima1-5/+2
2022-01-07su: use LOG_PID for syslogSam James1-1/+1
2021-12-14su: Verify default SIGCHLD handling.Tobias Stoeckmann1-0/+14
2021-11-29utmpdump: don't ignore sscanf() return code [coverity scan]Karel Zak1-1/+6
2021-11-27Complete Linux-PAM compliance for forked child in su and login.Andrew G. Morgan2-0/+6
2021-11-26Merge branch 'topic/lsfd'Karel Zak1-7/+12
2021-11-22login: (adoc) add hint about PAM and env.variablesKarel Zak1-0/+2
2021-11-19lslogins: remove unwanted debug messageKarel Zak1-3/+0
2021-11-14vipw: improve child error handlingTobias Stoeckmann1-3/+10
2021-11-02login: improve coding styleKarel Zak1-3/+3
2021-11-02login: Restore tty size after calling vhangup()Daan De Meyer1-0/+12
2021-10-25chsh: fflush stdout before reading from stdinLorenzo Beretta1-0/+1
2021-10-25chfn: flush stdout before reading stdin and fix uninitialized variableLorenzo Beretta1-1/+2
2021-10-25Merge branch 'flush' of https://github.com/ericonr/util-linuxKarel Zak1-0/+1
2021-10-25Merge branch 'uniformize-title-markups' of https://github.com/rffontenelle/ut...Karel Zak1-1/+1
2021-10-22vipw: flush stdout before getting answer.Érico Nogueira1-0/+1
2021-10-14su: reset RLIMIT_AS tooKarel Zak3-2/+3
2021-10-06lslogins: use lib/procfs.cKarel Zak1-10/+12
2021-10-04su: reset also RLIMIT_FSIZE and RLIMIT_NOFILEKarel Zak2-1/+15
2021-10-01su: reset RLIMIT_{NICE,RTPRIO} to zeroKarel Zak3-0/+21
2021-09-21Man pages: Fix end extend formattingMario Blättermann3-5/+7
2021-09-02docs: Uniformize references to section titlesRafael Fontenelle1-1/+1
2021-07-30Revert "sulogin: fix getpasswd()"Karel Zak1-1/+0
2021-07-29sulogin: fix getpasswd()Karel Zak1-0/+1
2021-07-27vipw: use snprintf() rather than sprintf()Karel Zak1-1/+1
2021-07-27logindefs: use snprintf() rather than sprintf()Karel Zak1-1/+1
2021-07-27last: use snprintf() rather than sprintf()Karel Zak1-17/+17
2021-07-22lslogins: fix memory leak [asan]Karel Zak1-0/+1
2021-07-22lslogins: ask for supplementary groups only once [asan]Karel Zak1-2/+5
2021-07-22lslogins: use sd_journal_get_data() in proper wayKarel Zak1-24/+35
2021-07-15login: add callback for close_range()Karel Zak1-3/+2
2021-07-15lslogins: consolidate and optimize utmp files useKarel Zak1-41/+38
2021-07-14login: fix close_range() useKarel Zak1-1/+1
2021-06-22utmpdump: do not use atoi()Karel Zak1-3/+11
2021-06-21lslogins: check errno after strto..()Karel Zak1-2/+5
2021-06-16sulogin: add missing ifdefsKarel Zak1-2/+6
2021-06-16sulogin: use explicit_bzero() for buffer with passwordKarel Zak1-5/+13
2021-06-16login: remove obsolete and confusing commentKarel Zak1-1/+0
2021-06-11newgrp: fix memory leak [coverity scan]Karel Zak1-3/+5
2021-05-24sulogin: fix whitespace errorKarel Zak1-1/+1
2021-05-24sulogin: ignore none-existing console devicesWerner Fink2-15/+81
2021-05-10fix whitespace issue in ducumentationChristian Hesse1-1/+1
2021-05-05build-sys: keep adoc files in dist_noinst_DATAKarel Zak1-0/+15
2021-04-12lslogins: non-Linux fixKarel Zak1-0/+10
2021-03-31build-sys: make man pages location independentKarel Zak11-33/+33
2021-03-29Merge remote-tracking branch 'mariobl/topic/asciidoc'Karel Zak27-1985/+1319
2021-03-28Asciidoc: Fix typo and remove invisible spaces which confuse po4aMario Blättermann1-3/+3
2021-03-26Asciidoc: Fix artifacts from initial importMario Blättermann1-1/+1
2021-03-26build-sys: fix typoKarel Zak1-1/+1
2021-03-26build-sys: split man pages and man page linksKarel Zak1-15/+13
2021-03-26build-sys: remove man page link filesKarel Zak3-4/+2
2021-03-26build-sys: remove duplicate hookKarel Zak1-3/+0
2021-03-24Asciidoc: Review login-utils man pagesMario Blättermann12-262/+220
2021-03-21Asciidoc: Unify spelling of »User Commands«Mario Blättermann9-9/+9
2021-03-20Asciidoc: Add Po4a hint to file headersMario Blättermann12-0/+12
2021-03-19Asciidoc: Re-add empty lines to man pagesMario Blättermann5-0/+11
2021-03-19Asciidoc: Some formatting cleanup in man pagesMario Blättermann1-2/+2
2021-03-17Asciidoc: Remove already imported login-utils *roff man pagesMario Blättermann12-1965/+0
2021-03-17Asciidoc: Import login-utils man pagesMario Blättermann12-0/+1325
2021-03-17meson: add second build systemZbigniew Jędrzejewski-Szmek1-0/+75
2021-03-02utmpdup: Ensure flushing when using follow flagAndrew Shapiro1-0/+4
2021-02-25su: fix man page typosŠtěpán Němec1-4/+4
2021-02-23su: (pty) change owner and mode for ptyKarel Zak1-2/+24
2021-02-23login: move generic setting to ttyutils.hKarel Zak1-7/+0
2021-02-23su: explicitly enable echo for --ptyKarel Zak1-0/+2
2021-02-05Merge branch 'gh-actions-bionic' of https://github.com/mrc0mmand/util-linuxKarel Zak1-0/+1
2021-02-03login: use full tty path for PAM_TTYKarel Zak1-3/+5
2021-02-03su: use full tty path for PAM_TTYKarel Zak1-3/+4
2021-02-01ci: deal with uninstrumented binaries using instrumented libsFrantisek Sumsal1-0/+1
2021-01-28lib: use ul_prefix for close_all_fds() and mkdir_p()Karel Zak1-1/+1
2021-01-13lib/selinux-utils: tiny cleanupKarel Zak1-1/+1
2021-01-13chfs-chfn: remove deprecated selinux_check_passwd_access()Karel Zak2-27/+13
2021-01-13lib/selinux-utils: cleanup function namesKarel Zak2-2/+2
2021-01-13build-sys: move selinux_utils.cKarel Zak5-41/+4
2021-01-13build-sys: remove fallback for security_context_tKarel Zak6-31/+11
2020-12-17*: spelling and grammar fixesVille Skyttä1-1/+1
2020-12-14login-utils: don't use deprecated security_context_tKarel Zak6-13/+34
2020-12-07login: fix compiler warning [-Werror=strict-prototypes]Karel Zak1-1/+1
2020-12-03login: tidy up manual pageSami Kerola1-80/+68
2020-12-03lib/fileutils: make close_all_fds() to be similar with close_range()Sami Kerola1-6/+1
2020-12-03login: use close_range() system call when possibleSami Kerola1-1/+6
2020-12-03login: move message printing out from main()Sami Kerola1-24/+31
2020-12-03login: use xalloc memory allocation helpers everywhereSami Kerola1-5/+2
2020-12-03login: fix coding style issuesSami Kerola1-57/+57
2020-12-03login: use system definitions to determine maxium login name lengthSami Kerola1-9/+6
2020-12-03login: use calloc() when memory needs to be clearedSami Kerola1-4/+2
2020-12-03login: use explicit_bzero() to get rid of confidental memorySami Kerola1-0/+4
2020-12-03login: add initialize() function to have less stack allocated in main()Sami Kerola1-38/+48
2020-12-03login: replace function like definitions with inline functionsSami Kerola1-6/+13
2020-12-03login: move getlogindefs_num() after localization initSami Kerola1-2/+2
2020-12-03login: move timeout from global to local scopeSami Kerola1-1/+1
2020-12-03login: stop keeping timeout message in memory foreverSami Kerola1-5/+7
2020-12-03login: use sig_atomic_t type for variable accessed from signal handlerSami Kerola1-1/+1
2020-12-01fuzzers: make tests setup more robustKarel Zak1-5/+6
2020-11-25lslogins: call close() for usable FD [coverity scan]Karel Zak1-1/+3
2020-11-20Merge branch 'w45'Karel Zak1-1/+1
2020-11-17build-sys: do not build plymouth-ctrl.c w/ disabled plymouthPino Toscano1-2/+4
2020-11-14man: make tilde and caret characters to render correctlySami Kerola1-1/+1
2020-11-09Merge branch 'vipw-shortwrite' of https://github.com/DankRank/util-linuxKarel Zak4-29/+11
2020-11-09ul_copy_file: make defines for return valuesEgor Chelak1-2/+2
2020-11-09nologin: use ul_copy_fileEgor Chelak2-6/+3
2020-11-09login: use ul_copy_fileEgor Chelak1-5/+2
2020-11-09vipw: move copyfile to the libEgor Chelak1-18/+6
2020-10-29cast NULL to char * when using execlEgor Chelak3-4/+4