diff options
| author | Olivier Certner <olce.freebsd@certner.fr> | 2023-05-30 15:14:50 +0000 |
|---|---|---|
| committer | Olivier Certner <olce@FreeBSD.org> | 2024-01-29 21:58:09 +0000 |
| commit | f2a0277d3e51a6a839151eef17f466d0db2b7300 (patch) | |
| tree | 625f71cb55518e051f8dfb73f967a04936ec4002 /lib | |
| parent | 33d4ce5496efe96bbaa7663e298876395b1db62c (diff) | |
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libutil/login_class.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c index 314ab0999320..5ae0fbfb80b8 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -621,6 +621,8 @@ setusercontext(login_cap_t *lc, const struct passwd *pwd, uid_t uid, unsigned in */ if (geteuid() == uid && (lc = login_getuserclass(pwd)) != NULL) { setlogincontext(lc, pwd, flags); + if (flags & LOGIN_SETPRIORITY) + setclasspriority(lc, pwd); login_close(lc); } |
