Kenny Levinsen
f1765a64a5
Add rustfmt file
2020-01-28 22:20:29 +01:00
Kenny Levinsen
2fb8309370
Re-organize and improve
2020-01-28 22:20:29 +01:00
Kenny Levinsen
a11ebd1c43
Progress towards proto update
2020-01-28 22:20:29 +01:00
Kenny Levinsen
1628d27436
Update dependencies
2020-01-28 22:20:29 +01:00
Kenny Levinsen
ce46ff82d3
session-worker option must be an 'opt'
2020-01-28 22:20:29 +01:00
Kenny Levinsen
cd7a754c9c
clippy
2020-01-28 22:20:29 +01:00
Kenny Levinsen
8636b03d58
agreety: Replace clap with getops
2020-01-28 22:20:29 +01:00
Kenny Levinsen
feba24763d
Report error on pam authentication failure
2020-01-28 22:20:29 +01:00
Kenny Levinsen
2a3d56db53
Replace clap with getopts
2020-01-28 22:20:29 +01:00
Kenny Levinsen
403f4a64f2
Lock memory after reading config
2020-01-28 22:20:29 +01:00
Kenny Levinsen
46325766db
Reshuffle things a bit
2020-01-28 22:20:29 +01:00
Kenny Levinsen
1e2f7bd84e
Exec the session worker
2020-01-28 22:20:29 +01:00
Kenny Levinsen
85cb2d3e81
Re-enable LTO
2020-01-28 22:20:29 +01:00
Kenny Levinsen
2ef9e9ec17
Works?
2020-01-28 22:20:29 +01:00
Kenny Levinsen
608311ca9a
Prevent swapping
2020-01-28 22:20:29 +01:00
Kenny Levinsen
8782bddc3b
WIP cargo fmt
2020-01-28 22:20:29 +01:00
Kenny Levinsen
6a3dce3d4f
WIP Break all the things
2020-01-28 22:20:29 +01:00
Kenny Levinsen
ce8380f313
WIP Initial Tokio port
2020-01-28 22:20:29 +01:00
Kenny Levinsen
28f7a9867f
agreety: Escape /etc/issue backslashes
2020-01-10 11:58:36 +01:00
Kenny Levinsen
b6a7181f59
pam: Take dyn Converse instead of PasswordConv
2020-01-09 20:11:45 +01:00
Kenny Levinsen
9e1cad0c25
pam: Some cleanups in Converse system
...
- Take an initialized Converse as argument to PamSession::start.
- Save a few copies of username/password strings in PasswordConv.
- Free strdup'd strings on error in the pam_conversation callback.
2020-01-09 15:36:23 +01:00
Kenny Levinsen
7adcfcb31a
pam: Use libc::c_void for consistency
2020-01-09 13:40:41 +01:00
Kenny Levinsen
cb0584bbcf
session: Remove unnecessary libc::pid_t reference
2020-01-09 13:35:46 +01:00
Kenny Levinsen
51bab32241
main: Increase readability a bit
2020-01-09 13:35:14 +01:00
Kenny Levinsen
a5a3f05eaa
clippy suggestions
2020-01-08 13:18:01 +01:00
Kenny Levinsen
ba336f5bec
ci: Explicit source
2020-01-08 11:49:37 +01:00
Kenny Levinsen
e6b28b9996
ci: Initial builds.sr.ht manifest
2020-01-08 11:33:46 +01:00
Kenny Levinsen
9d732ffcef
cargo fmt
2020-01-08 02:02:40 +01:00
Kenny Levinsen
02776058a0
pam: Add pam_getenv
2020-01-08 02:02:40 +01:00
Kenny Levinsen
1df59739d5
session: Initial environment.d support
...
Read the configuration files in the various environment.d folders to set
up the user environment.
Only very basic substition is currently supported. Environment variable
precedence should be correct as per the documentation, but it has not
been verified against the existing systemd implementations.
2020-01-08 02:00:20 +01:00
Kenny Levinsen
2c83a5b4a2
Move things into folders
2020-01-07 22:34:17 +01:00
Kenny Levinsen
c8708b9338
agreety: Primitive /etc/issue support
2020-01-07 20:43:34 +01:00
Kenny Levinsen
4a5ea14ac0
proto: Make env an array, rename command to cmd
2020-01-07 19:23:39 +01:00
Kenny Levinsen
cd237f580f
Add a few more comments here and there
2020-01-07 18:49:38 +01:00
Kenny Levinsen
7ca088d7c0
pam: Avoid an unsafe block
2020-01-07 18:49:10 +01:00
Kenny Levinsen
08f3c5f873
Minor fmt
2020-01-07 18:05:46 +01:00
Kenny Levinsen
9aaa0e802d
agreety: Fix tty printout
2020-01-07 18:05:34 +01:00
Kenny Levinsen
b0d474e120
terminal: Use std::fs::File more
2020-01-07 18:04:03 +01:00
Kenny Levinsen
8219cdc129
readme: Update
2020-01-07 02:45:03 +01:00
Kenny Levinsen
ba358442f4
readme: Remove VT reference
2020-01-07 02:44:31 +01:00
Kenny Levinsen
44205cff8a
Add comments to example config
2020-01-07 02:44:16 +01:00
Kenny Levinsen
ee87ddcf18
agreety: Remove unused vt arg
2020-01-07 02:27:02 +01:00
Kenny Levinsen
252ab3738a
proto: Simply Login by removing VT field
...
There are currently use-cases for this functionality, so remove feature
in order to simplify the protocol.
2020-01-07 01:55:33 +01:00
Kenny Levinsen
231f11e43b
terminal: Rename set_kdmode to kd_setmode
2020-01-07 01:29:55 +01:00
Kenny Levinsen
8e88b058a0
terminal: Use VT_SETACTIVE on Linux
2020-01-07 01:28:25 +01:00
Kenny Levinsen
41341f0a08
session: Make VT switching more consistent
2020-01-07 01:27:47 +01:00
Kenny Levinsen
6a930fa742
agreety: Hide auth error like agetty
2020-01-06 18:07:21 +01:00
Kenny Levinsen
a18ed1aa6c
agreety: Show current and target VT
2020-01-06 18:07:10 +01:00
Kenny Levinsen
7e83c5fc8d
session: Wait till after VT switch to hook up pipes
2020-01-06 17:57:04 +01:00
Kenny Levinsen
6c94cd91b0
context: Move exec code out of shutdown method
2020-01-06 17:56:37 +01:00