sysv_shm.c (76ad42abf9d46c7a86c9e727603fe62e8b62a37b) | sysv_shm.c (f7496dcab0360a74bfb00cd6118f66323fffda61) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-4-Clause AND BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 965 unchanged lines hidden (view full) --- 974 (void)osd_jail_set_reserved(&prison0, shm_prison_slot, rsv, &prison0); 975 prison_unlock(&prison0); 976 rsv = NULL; 977 sx_slock(&allprison_lock); 978 TAILQ_FOREACH(pr, &allprison, pr_list) { 979 if (rsv == NULL) 980 rsv = osd_reserve(shm_prison_slot); 981 prison_lock(pr); | 1/*- 2 * SPDX-License-Identifier: BSD-4-Clause AND BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 965 unchanged lines hidden (view full) --- 974 (void)osd_jail_set_reserved(&prison0, shm_prison_slot, rsv, &prison0); 975 prison_unlock(&prison0); 976 rsv = NULL; 977 sx_slock(&allprison_lock); 978 TAILQ_FOREACH(pr, &allprison, pr_list) { 979 if (rsv == NULL) 980 rsv = osd_reserve(shm_prison_slot); 981 prison_lock(pr); |
982 if (prison_isvalid(pr) && (pr->pr_allow & PR_ALLOW_SYSVIPC)) { | 982 if (pr->pr_allow & PR_ALLOW_SYSVIPC) { |
983 (void)osd_jail_set_reserved(pr, shm_prison_slot, rsv, 984 &prison0); 985 rsv = NULL; 986 } 987 prison_unlock(pr); 988 } 989 if (rsv != NULL) 990 osd_free_reserved(rsv); --- 713 unchanged lines hidden --- | 983 (void)osd_jail_set_reserved(pr, shm_prison_slot, rsv, 984 &prison0); 985 rsv = NULL; 986 } 987 prison_unlock(pr); 988 } 989 if (rsv != NULL) 990 osd_free_reserved(rsv); --- 713 unchanged lines hidden --- |