github.com/kubiko/snapd@v0.0.0-20201013125620-d4f3094d9ddf/cmd/snap-discard-ns/snap-discard-ns.rst (about) 1 ================ 2 snap-discard-ns 3 ================ 4 5 ------------------------------------------------------------------------ 6 internal tool for discarding preserved namespaces of snappy applications 7 ------------------------------------------------------------------------ 8 9 :Author: zygmunt.krynicki@canonical.com 10 :Date: 2018-10-17 11 :Copyright: Canonical Ltd. 12 :Version: 2.36 13 :Manual section: 5 14 :Manual group: snappy 15 16 SYNOPSIS 17 ======== 18 19 snap-discard-ns [--from-snap-confine] SNAP_INSTANCE_NAME 20 21 DESCRIPTION 22 =========== 23 24 The `snap-discard-ns` is a program used internally by `snapd` to discard a preserved 25 mount namespace of a particular snap. 26 27 OPTIONS 28 ======= 29 30 The --from-snap-confine option is used internally by snap-confine to tell 31 snap-discard-ns that it is invoked from snap-confine and can disable locking. 32 33 ENVIRONMENT 34 =========== 35 36 `snap-discard-ns` responds to the following environment variables 37 38 `SNAP_CONFINE_DEBUG`: 39 When defined the program will print additional diagnostic information about 40 the actions being performed. All the output goes to stderr. 41 42 FILES 43 ===== 44 45 `snap-discard-ns` uses the following files: 46 47 `/run/snapd/ns/$SNAP_INSTNACE_NAME.mnt`: 48 `/run/snapd/ns/$SNAP_INSTNACE_NAME.*.mnt`: 49 50 The preserved mount namespace that is unmounted and removed by 51 `snap-discard-ns`. The second form is for the per-user mount namespace. 52 53 `/run/snapd/ns/snap.$SNAP_INSTNACE_NAME.fstab`: 54 `/run/snapd/ns/snap.$SNAP_INSTNACE_NAME.*.user-fstab`: 55 56 The current mount profile of a preserved mount namespace that is removed 57 by `snap-discard-ns`. 58 59 BUGS 60 ==== 61 62 Please report all bugs with https://bugs.launchpad.net/snapd/+filebug