Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
many: add stub implementation of snap-alter-ns #2643
Merged
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
Jump to file or symbol
Failed to load files and symbols.
12
.gitignore
| @@ -0,0 +1,25 @@ | ||
| +/* | ||
| + * Copyright (C) 2017 Canonical Ltd | ||
| + * | ||
| + * This program is free software: you can redistribute it and/or modify | ||
| + * it under the terms of the GNU General Public License version 3 as | ||
| + * published by the Free Software Foundation. | ||
| + * | ||
| + * This program is distributed in the hope that it will 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, see <http://www.gnu.org/licenses/>. | ||
| + * | ||
| + */ | ||
| + | ||
| +#ifdef HAVE_CONFIG_H | ||
| +#include "config.h" | ||
| +#endif | ||
| + | ||
| +int main(int arch, char **argv) | ||
| +{ | ||
| + return 1; | ||
| +} |
| @@ -0,0 +1,65 @@ | ||
| +=============== | ||
| + snap-alter-ns | ||
| +=============== | ||
| + | ||
| +----------------------------------------------------------------------- | ||
| +internal tool for altering preserved namespaces of snappy applications | ||
| +----------------------------------------------------------------------- | ||
| + | ||
| +:Author: zygmunt.krynicki@canonical.com | ||
| +:Date: 2017-01-17 | ||
| +:Copyright: Canonical Ltd. | ||
| +:Version: 2.22 | ||
| +:Manual section: 5 | ||
| +:Manual group: snappy | ||
| + | ||
| +SYNOPSIS | ||
| +======== | ||
| + | ||
| + snap-alter-ns SNAP_NAME | ||
| + | ||
| +DESCRIPTION | ||
| +=========== | ||
| + | ||
| +The `snap-alter-ns` is a program used internally by `snapd` to alter a preserved | ||
| +mount namespace of a particular snap. | ||
| + | ||
| +OPTIONS | ||
| +======= | ||
| + | ||
| +The `snap-alter-ns` program does not support any options. | ||
| + | ||
| +ENVIRONMENT | ||
| +=========== | ||
| + | ||
| +`snap-alter-ns` responds to the following environment variables | ||
| + | ||
| +`SNAP_CONFINE_DEBUG`: | ||
| + When defined the program will print additional diagnostic information about | ||
| + the actions being performed. All the output goes to stderr. | ||
| + | ||
| +FILES | ||
| +===== | ||
| + | ||
| +`snap-alter-ns` uses the following files: | ||
| + | ||
| +`/run/snapd/ns/$SNAP_NAME.mnt`: | ||
| + | ||
| + The preserved mount namespace that is altered by `snap-alter-ns`. | ||
| + | ||
| +`/proc/self/mountinfo`: | ||
| + | ||
| + Kernel representation of the mount table of the current process. | ||
| + | ||
| +`/var/lib/snapd/mount/$SNAP_NAME.fstab`: | ||
| + | ||
| + Desired, persistent mount table for the given snap. | ||
| + | ||
| +`/run/snapd/ns/$SNAP_NAME.fstab`: | ||
| + | ||
| + Current, ephemeral mount table for the gien snap. | ||
| + | ||
| +BUGS | ||
| +==== | ||
| + | ||
| +Please report all bugs with https://bugs.launchpad.net/snap-confine/+filebug |