I think it makes sense to accept LOGIN_SETRTABLE for setclasscontext(3)
as well.  Currently, it will be cleared out of the flags.

 - todd

Index: lib/libc/gen/login_cap.3
===================================================================
RCS file: /cvs/src/lib/libc/gen/login_cap.3,v
retrieving revision 1.19
diff -u -p -u -r1.19 login_cap.3
--- lib/libc/gen/login_cap.3    4 Mar 2022 08:47:53 -0000       1.19
+++ lib/libc/gen/login_cap.3    22 Mar 2022 22:24:30 -0000
@@ -181,6 +181,7 @@ Only the
 .Dv LOGIN_SETPATH ,
 .Dv LOGIN_SETPRIORITY ,
 .Dv LOGIN_SETRESOURCES ,
+.Dv LOGIN_SETRTABLE ,
 and
 .Dv LOGIN_SETUMASK
 bits are used
Index: lib/libc/gen/login_cap.c
===================================================================
RCS file: /cvs/src/lib/libc/gen/login_cap.c,v
retrieving revision 1.44
diff -u -p -u -r1.44 login_cap.c
--- lib/libc/gen/login_cap.c    20 Mar 2022 23:24:03 -0000      1.44
+++ lib/libc/gen/login_cap.c    22 Mar 2022 22:24:13 -0000
@@ -573,7 +573,7 @@ setclasscontext(char *class, u_int flags
        login_cap_t *lc;
 
        flags &= LOGIN_SETRESOURCES | LOGIN_SETPRIORITY | LOGIN_SETUMASK |
-           LOGIN_SETPATH;
+           LOGIN_SETPATH | LOGIN_SETRTABLE;
 
        lc = login_getclass(class);
        ret = lc ? setusercontext(lc, NULL, 0, flags) : -1;

Reply via email to