proccontrol.c (acb1f1269c6f4ff89a0d28ba742f6687e9ef779d) | proccontrol.c (1349891a0eed79625faafa5ad354d65ff9ea6012) |
---|---|
1/*- 2 * Copyright (c) 2016 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Konstantin Belousov <kib@FreeBSD.org> 6 * under sponsorship from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 164 unchanged lines hidden (view full) --- 173 break; 174 case MODE_PROTMAX: 175 error = procctl(P_PID, pid, PROC_PROTMAX_STATUS, &arg); 176 break; 177 case MODE_STACKGAP: 178 error = procctl(P_PID, pid, PROC_STACKGAP_STATUS, &arg); 179 break; 180 case MODE_NO_NEW_PRIVS: | 1/*- 2 * Copyright (c) 2016 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Konstantin Belousov <kib@FreeBSD.org> 6 * under sponsorship from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 164 unchanged lines hidden (view full) --- 173 break; 174 case MODE_PROTMAX: 175 error = procctl(P_PID, pid, PROC_PROTMAX_STATUS, &arg); 176 break; 177 case MODE_STACKGAP: 178 error = procctl(P_PID, pid, PROC_STACKGAP_STATUS, &arg); 179 break; 180 case MODE_NO_NEW_PRIVS: |
181 error = procctl(P_PID, pid, PROC_NO_NEW_PRIVS_STATUS, &arg); | 181 error = procctl(P_PID, pid, PROC_NO_NEW_PRIVS_STATUS, 182 &arg); |
182 break; 183#ifdef PROC_KPTI_CTL 184 case MODE_KPTI: 185 error = procctl(P_PID, pid, PROC_KPTI_STATUS, &arg); 186 break; 187#endif 188#ifdef PROC_LA_CTL 189 case MODE_LA57: --- 154 unchanged lines hidden (view full) --- 344 arg = enable ? PROC_STACKGAP_ENABLE_EXEC : 345 (PROC_STACKGAP_DISABLE | 346 PROC_STACKGAP_DISABLE_EXEC); 347 error = procctl(P_PID, pid, PROC_STACKGAP_CTL, &arg); 348 break; 349 case MODE_NO_NEW_PRIVS: 350 arg = enable ? PROC_NO_NEW_PRIVS_ENABLE : 351 PROC_NO_NEW_PRIVS_DISABLE; | 183 break; 184#ifdef PROC_KPTI_CTL 185 case MODE_KPTI: 186 error = procctl(P_PID, pid, PROC_KPTI_STATUS, &arg); 187 break; 188#endif 189#ifdef PROC_LA_CTL 190 case MODE_LA57: --- 154 unchanged lines hidden (view full) --- 345 arg = enable ? PROC_STACKGAP_ENABLE_EXEC : 346 (PROC_STACKGAP_DISABLE | 347 PROC_STACKGAP_DISABLE_EXEC); 348 error = procctl(P_PID, pid, PROC_STACKGAP_CTL, &arg); 349 break; 350 case MODE_NO_NEW_PRIVS: 351 arg = enable ? PROC_NO_NEW_PRIVS_ENABLE : 352 PROC_NO_NEW_PRIVS_DISABLE; |
352 error = procctl(P_PID, pid, PROC_NO_NEW_PRIVS_CTL, &arg); | 353 error = procctl(P_PID, pid, PROC_NO_NEW_PRIVS_CTL, 354 &arg); |
353 break; 354#ifdef PROC_KPTI_CTL 355 case MODE_KPTI: 356 arg = enable ? PROC_KPTI_CTL_ENABLE_ON_EXEC : 357 PROC_KPTI_CTL_DISABLE_ON_EXEC; 358 error = procctl(P_PID, pid, PROC_KPTI_CTL, &arg); 359 break; 360#endif --- 25 unchanged lines hidden --- | 355 break; 356#ifdef PROC_KPTI_CTL 357 case MODE_KPTI: 358 arg = enable ? PROC_KPTI_CTL_ENABLE_ON_EXEC : 359 PROC_KPTI_CTL_DISABLE_ON_EXEC; 360 error = procctl(P_PID, pid, PROC_KPTI_CTL, &arg); 361 break; 362#endif --- 25 unchanged lines hidden --- |