* The VFS system will register jail-aware filesystems here. They each get * a parameter allow.mount.xxxfs and a flag to check when a jailed user * attempts to mount. */
| 4177 | * attempts to mount. |
| 4178 | */ |
| 4179 | void |
| 4180 | prison_add_vfs(struct vfsconf *vfsp) |
| 4181 | { |
| 4182 | #ifdef NO_SYSCTL_DESCR |
| 4183 | |
| 4184 | vfsp->vfc_prison_flag = prison_add_allow("mount", vfsp->vfc_name, |
| 4185 | NULL, NULL); |
| 4186 | #else |
| 4187 | char *descr; |
| 4188 | |
| 4189 | (void)asprintf(&descr, M_TEMP, "Jail may mount the %s file system", |
| 4190 | vfsp->vfc_name); |
| 4191 | vfsp->vfc_prison_flag = prison_add_allow("mount", vfsp->vfc_name, |
| 4192 | NULL, descr); |
| 4193 | free(descr, M_TEMP); |
| 4194 | #endif |
| 4195 | } |
| 4196 | |
| 4197 | #ifdef RACCT |
| 4198 | void |
no test coverage detected