2016-02-17 11:54:21 +01:00
|
|
|
/* bubblewrap
|
2016-02-16 10:03:46 +01:00
|
|
|
* Copyright (C) 2016 Alexander Larsson
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2016-05-12 10:11:51 -07:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2016-02-16 10:03:46 +01:00
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2016-05-18 09:41:31 -04:00
|
|
|
#pragma once
|
2016-02-16 10:03:46 +01:00
|
|
|
|
|
|
|
|
typedef enum {
|
2016-05-13 10:18:14 +02:00
|
|
|
BIND_READONLY = (1 << 0),
|
|
|
|
|
BIND_DEVICES = (1 << 2),
|
|
|
|
|
BIND_RECURSIVE = (1 << 3),
|
2016-02-16 10:03:46 +01:00
|
|
|
} bind_option_t;
|
|
|
|
|
|
2016-05-13 10:18:14 +02:00
|
|
|
int bind_mount (int proc_fd,
|
|
|
|
|
const char *src,
|
|
|
|
|
const char *dest,
|
2016-02-16 10:03:46 +01:00
|
|
|
bind_option_t options);
|