4 code results in snapcore/snapd
C
cmd/snap-confine/snap-confine.c
Showing the top two matches
Last indexed Nov 17, 2017
| 154 | if (geteuid() != 0 && secure_getenv("SNAP_CONFINE_NO_ROOT") == NULL) { |
| 155 | die("need to run as root or suid"); |
| 156 | } |
| 157 | #endif |
| 158 | |
| 159 | char *snap_context SC_CLEANUP(sc_cleanup_string) = NULL; |
| … | |
| 162 | struct sc_error *err SC_CLEANUP(sc_cleanup_error) = NULL; |
| 163 | snap_context = sc_cookie_get_from_snapd(snap_name, &err); |
| 164 | if (err != NULL) { |
Go
cmd/snapctl/main.go
Showing the top match
Last indexed Nov 2, 2017
YAML
tests/main/snap-env/task.yaml
Showing the top match
Last indexed Jan 2, 2018
Go
overlord/hookstate/hookmgr.go
Showing the top two matches
Last indexed Jan 2, 2018