* Set or clear a permission bit in the pr_allow field, passing restrictions * (cleared permission) down to child jails. */
| 2898 | * (cleared permission) down to child jails. |
| 2899 | */ |
| 2900 | void |
| 2901 | prison_set_allow(struct ucred *cred, unsigned flag, int enable) |
| 2902 | { |
| 2903 | struct prison *pr; |
| 2904 | |
| 2905 | pr = cred->cr_prison; |
| 2906 | sx_slock(&allprison_lock); |
| 2907 | mtx_lock(&pr->pr_mtx); |
| 2908 | prison_set_allow_locked(pr, flag, enable); |
| 2909 | mtx_unlock(&pr->pr_mtx); |
| 2910 | sx_sunlock(&allprison_lock); |
| 2911 | } |
| 2912 | |
| 2913 | static void |
| 2914 | prison_set_allow_locked(struct prison *pr, unsigned flag, int enable) |
no test coverage detected