diff options
author | Colin Walters <walters@verbum.org> | 2015-09-05 09:20:58 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-09-05 09:20:58 -0400 |
commit | 4b9efbfb1fd3c543e7808af90bc8e9730c1ba6e9 (patch) | |
tree | decfd7785a840587b47feee3af46a8eb4622a57f /src/setup-dev.h | |
parent | ab5eea42d2a182c7c9a5807ccbc3a7bd254d1865 (diff) | |
download | linux-user-chroot-4b9efbfb1fd3c543e7808af90bc8e9730c1ba6e9.tar.gz |
Add --mount-devapi optionmore-restriction-options
By default, we had supported `--mount-bind /dev /dev` to get
access to devices. But in many cases, build systems and the
like will want to avoid exposing host physical devices.
For example, if I'm building something locally, I don't want the
makefile etc. to be able to access `/dev/dri`.
Diffstat (limited to 'src/setup-dev.h')
-rw-r--r-- | src/setup-dev.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/setup-dev.h b/src/setup-dev.h new file mode 100644 index 0000000..48e7668 --- /dev/null +++ b/src/setup-dev.h @@ -0,0 +1,24 @@ +/* -*- mode: c; tab-width: 2; indent-tabs-mode: nil -*- + * + * linux-user-chroot: A setuid program that allows non-root users to safely chroot(2) + * + * Copyright 2015 Colin Walters <walters@verbum.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it would be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#pragma once + +int setup_dev (const char *dest); |