[{"data":1,"prerenderedAt":794},["ShallowReactive",2],{"article-20180806-lxc-hidepid-process-hiding":3},{"article":4,"surround":783},{"id":5,"title":6,"authorKey":7,"body":8,"codeLinks":740,"createdAt":741,"description":742,"excerpt":743,"extension":770,"image":771,"meta":772,"navigation":278,"path":773,"published":774,"readingTime":298,"revisedAt":740,"seo":775,"stem":776,"tags":777,"__hash__":782},"articles\u002Farticles\u002F20180806-lxc-hidepid-process-hiding.md","Process hiding in LXC using hidepid capabilities of procfs","philip",{"type":9,"value":10,"toc":735},"minimark",[11,37,64,69,78,89,95,128,135,141,144,199,213,216,220,233,244,255,356,475,478,502,513,549,556,584,590,596,599,638,644,648,651,660,681,687,693,699,712,731],[12,13,14,15,20,21,27,28,32,33,36],"p",{},"Back in 2013, I wrote about ",[16,17,19],"a",{"href":18},"\u002Farticles\u002F20130930-hidepid-process-hiding","Linux process hiding using hidepid capabilities of procfs",". On shared webhosting servers at ",[16,22,26],{"href":23,"rel":24},"https:\u002F\u002Fwww.onlime.ch\u002F",[25],"nofollow","Onlime GmbH",", I have used the ",[29,30,31],"code",{},"hidepid=2"," mount option for procfs (",[29,34,35],{},"\u002Fproc"," filesystem) for improved security. Like this, a regular system user (which could potentially be an evil customer that has gained SSH access and tries to spy on other's processes) does only see his own processes, all other processes are hidden.",[12,38,39,40,43,44,49,50,54,55,60,61,63],{},"This is great and super simple to enable, as it is part of the official Linux kernel for quite a while now. But things start to get a little trickier when we try to set up ",[29,41,42],{},"hidepid"," procfs mount option inside an ",[16,45,48],{"href":46,"rel":47},"https:\u002F\u002Flinuxcontainers.org\u002F",[25],"LXC container",". Enabling the mount option on the host system will not do! Inside an LXC container, a regular system user is still able to see all processes. Before ",[51,52,53],"strong",{},"LXC 2.1"," (released in Sept 2017), this was also quite doable, as we just had to create a new ",[16,56,59],{"href":57,"rel":58},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FAppArmor",[25],"AppArmor"," profile on the host system to allow the LXC container to set the ",[29,62,35],{}," mount options. But since LXC 2.1 it got super tricky. I will present both solutions below, in case you have struggled with this hard one in newer LXC versions.",[65,66,68],"h2",{"id":67},"recap-procfs-hidepid-mount-option","Recap: procfs hidepid mount option",[12,70,71,74,75,77],{},[29,72,73],{},"man proc"," explains the ",[29,76,42],{}," capability of procfs in depth:",[79,80,87],"pre",{"className":81,"code":83,"filename":84,"language":85,"meta":86},[82],"language-text","   Mount options\n       The proc filesystem supports the following mount options:\n\n       hidepid=n (since Linux 3.3)\n              This option controls who can access the information in \u002Fproc\u002F[pid] directories.  The  ar‐\n              gument, n, is one of the following values:\n\n              0   Everybody  may access all \u002Fproc\u002F[pid] directories.  This is the traditional behavior,\n                  and the default if this mount option is not specified.\n\n              1   Users may not access files and subdirectories inside any \u002Fproc\u002F[pid] directories  but\n                  their  own  (the \u002Fproc\u002F[pid] directories themselves remain visible).  Sensitive files\n                  such as \u002Fproc\u002F[pid]\u002Fcmdline and \u002Fproc\u002F[pid]\u002Fstatus are now  protected  against  other\n                  users.  This makes it impossible to learn whether any user is running a specific pro‐\n                  gram (so long as the program doesn't otherwise reveal itself by its behavior).\n\n              2   As for mode 1, but in addition the \u002Fproc\u002F[pid] directories belonging to  other  users\n                  become  invisible.  This means that \u002Fproc\u002F[pid] entries can no longer be used to dis‐\n                  cover the PIDs on the system.  This doesn't hide the fact that a process with a  spe‐\n                  cific  PID  value  exists (it can be learned by other means, for example, by \"kill -0\n                  $PID\"), but it hides a process's UID and GID, which could otherwise be learned by em‐\n                  ploying  stat(2)  on a \u002Fproc\u002F[pid] directory.  This greatly complicates an attacker's\n                  task of gathering information about running processes (e.g., discovering whether some\n                  daemon is running with elevated privileges, whether another user is running some sen‐\n                  sitive program, whether other users are running any program at all, and so on).\n","PROC(5)","text","",[29,88,83],{"__ignoreMap":86},[12,90,91,92,94],{},"So, ",[29,93,31],{}," is what we want! On a standard Linux (we're using stable Debian Linux everywhere), you can enable this procfs mount option by a simple remount:",[79,96,100],{"className":97,"code":98,"language":99,"meta":86,"style":86},"language-bash shiki shiki-themes github-light-default github-light-default github-dark-default","$ mount -o remount,hidepid=2 \u002Fproc\n","bash",[29,101,102],{"__ignoreMap":86},[103,104,107,111,115,119,122,125],"span",{"class":105,"line":106},"line",1,[103,108,110],{"class":109},"sQJ0q","$",[103,112,114],{"class":113},"s-BGO"," mount",[103,116,118],{"class":117},"sDkKp"," -o",[103,120,121],{"class":113}," remount,hidepid=",[103,123,124],{"class":117},"2",[103,126,127],{"class":113}," \u002Fproc\n",[12,129,130,131,134],{},"You may also add this mount option directly to ",[29,132,133],{},"\u002Fetc\u002Ffstab"," in order to make it persistent over reboots:",[79,136,139],{"className":137,"code":138,"language":85},[82],"proc            \u002Fproc           proc    defaults,hidepid=2        0       0\n",[29,140,138],{"__ignoreMap":86},[12,142,143],{},"A regular system user will then only see his own processes, e.g.:",[79,145,147],{"className":97,"code":146,"language":99,"meta":86,"style":86},"testuser@web:~$ ps\n  PID TTY          TIME CMD\n17486 pts\u002F0    00:00:00 bash\n24806 pts\u002F0    00:00:00 ps\n",[29,148,149,157,172,187],{"__ignoreMap":86},[103,150,151,154],{"class":105,"line":106},[103,152,153],{"class":109},"testuser@web:~$",[103,155,156],{"class":113}," ps\n",[103,158,160,163,166,169],{"class":105,"line":159},2,[103,161,162],{"class":109},"  PID",[103,164,165],{"class":113}," TTY",[103,167,168],{"class":113},"          TIME",[103,170,171],{"class":113}," CMD\n",[103,173,175,178,181,184],{"class":105,"line":174},3,[103,176,177],{"class":109},"17486",[103,179,180],{"class":113}," pts\u002F0",[103,182,183],{"class":113},"    00:00:00",[103,185,186],{"class":113}," bash\n",[103,188,190,193,195,197],{"class":105,"line":189},4,[103,191,192],{"class":109},"24806",[103,194,180],{"class":113},[103,196,183],{"class":113},[103,198,156],{"class":113},[12,200,201,202,205,206,205,209,212],{},"This also works for other commands like ",[51,203,204],{},"pstree",", ",[51,207,208],{},"top",[51,210,211],{},"htop",",...",[12,214,215],{},"All good so far, but this article is about LXC containers with its super strict AppArmor policies that make things a little bit harder...",[65,217,219],{"id":218},"procfs-mount-options-in-lxc-before-v21","Procfs mount options in LXC before v2.1",[12,221,222,223,228,229,232],{},"On an host system with an LXC version before 2.1, in our case ",[16,224,227],{"href":225,"rel":226},"https:\u002F\u002Fproxmox.com\u002Fen\u002Fproxmox-ve",[25],"Proxmox VE"," up until 5.0 (LXC 2.1 was introduced in Proxmox VE 5.1 in Oct 2017), you could allow the container to set procfs mount options by creating a new ",[16,230,59],{"href":57,"rel":231},[25]," profile. I have described this in the following Proxmox VE forum post:",[234,235,236],"ul",{},[237,238,239],"li",{},[16,240,243],{"href":241,"rel":242},"https:\u002F\u002Fforum.proxmox.com\u002Fthreads\u002Fprocess-hiding-in-lxc-hidepid-proc-mount-option.28935\u002F#post-182915",[25],"Process hiding in LXC (hidepid proc mount option)",[12,245,246,247,250,251,254],{},"On the host system (running Proxmox VE or any system that offers LXC \u003C 2.1), copy the default AppArmor profile ",[29,248,249],{},"\u002Fetc\u002Fapparmor.d\u002Flxc\u002Flxc-default-cgns"," to ",[29,252,253],{},"\u002Fetc\u002Fapparmor.d\u002Flxc\u002Flxc-default-cgns-with-proc-remount"," with :",[79,256,261],{"className":257,"code":258,"filename":259,"language":260,"meta":86,"style":86},"language-yaml shiki shiki-themes github-light-default github-light-default github-dark-default","# Do not load this file.  Rather, load \u002Fetc\u002Fapparmor.d\u002Flxc-containers, which\n# will source all profiles under \u002Fetc\u002Fapparmor.d\u002Flxc\n\nprofile lxc-container-default-cgns-with-proc-remount flags=(attach_disconnected,mediate_deleted) {\n  #include \u003Cabstractions\u002Flxc\u002Fcontainer-base>\n\n  # the container may never be allowed to mount devpts.  If it does, it\n  # will remount the host's devpts.  We could allow it to do it with\n  # the newinstance option (but, right now, we don't).\n  deny mount fstype=devpts,\n  mount fstype=cgroup -> \u002Fsys\u002Ffs\u002Fcgroup\u002F**,\n\n  # This will allow remounting \u002Fproc, e.g. to add hidepid=2 mount option\n  # The hidepid option doesn't need to be included here as it's not known by AppArmor.\n  mount options=(rw,nosuid,nodev,noexec,remount,relatime) -> \u002Fproc\u002F,\n}\n","lxc-default-cgns-with-proc-remount","yaml",[29,262,263,269,274,280,285,291,296,302,308,314,320,326,331,337,343,349],{"__ignoreMap":86},[103,264,265],{"class":105,"line":106},[103,266,268],{"class":267},"s9BHP","# Do not load this file.  Rather, load \u002Fetc\u002Fapparmor.d\u002Flxc-containers, which\n",[103,270,271],{"class":105,"line":159},[103,272,273],{"class":267},"# will source all profiles under \u002Fetc\u002Fapparmor.d\u002Flxc\n",[103,275,276],{"class":105,"line":174},[103,277,279],{"emptyLinePlaceholder":278},true,"\n",[103,281,282],{"class":105,"line":189},[103,283,284],{"class":113},"profile lxc-container-default-cgns-with-proc-remount flags=(attach_disconnected,mediate_deleted) {\n",[103,286,288],{"class":105,"line":287},5,[103,289,290],{"class":267},"  #include \u003Cabstractions\u002Flxc\u002Fcontainer-base>\n",[103,292,294],{"class":105,"line":293},6,[103,295,279],{"emptyLinePlaceholder":278},[103,297,299],{"class":105,"line":298},7,[103,300,301],{"class":267},"  # the container may never be allowed to mount devpts.  If it does, it\n",[103,303,305],{"class":105,"line":304},8,[103,306,307],{"class":267},"  # will remount the host's devpts.  We could allow it to do it with\n",[103,309,311],{"class":105,"line":310},9,[103,312,313],{"class":267},"  # the newinstance option (but, right now, we don't).\n",[103,315,317],{"class":105,"line":316},10,[103,318,319],{"class":113},"  deny mount fstype=devpts,\n",[103,321,323],{"class":105,"line":322},11,[103,324,325],{"class":113},"  mount fstype=cgroup -> \u002Fsys\u002Ffs\u002Fcgroup\u002F**,\n",[103,327,329],{"class":105,"line":328},12,[103,330,279],{"emptyLinePlaceholder":278},[103,332,334],{"class":105,"line":333},13,[103,335,336],{"class":267},"  # This will allow remounting \u002Fproc, e.g. to add hidepid=2 mount option\n",[103,338,340],{"class":105,"line":339},14,[103,341,342],{"class":267},"  # The hidepid option doesn't need to be included here as it's not known by AppArmor.\n",[103,344,346],{"class":105,"line":345},15,[103,347,348],{"class":113},"  mount options=(rw,nosuid,nodev,noexec,remount,relatime) -> \u002Fproc\u002F,\n",[103,350,352],{"class":105,"line":351},16,[103,353,355],{"class":354},"s_bOF","}\n",[357,358,359,365],"blockquote",{},[12,360,361,364],{},[51,362,363],{},"Note:"," We have added the last section, see the diff:",[79,366,370],{"className":367,"code":368,"language":369,"meta":86,"style":86},"language-diff shiki shiki-themes github-light-default github-light-default github-dark-default","--- lxc-default-cgns\n+++ lxc-default-cgns-with-proc-remount\n@@ -1,7 +1,7 @@\n # Do not load this file.  Rather, load \u002Fetc\u002Fapparmor.d\u002Flxc-containers, which\n # will source all profiles under \u002Fetc\u002Fapparmor.d\u002Flxc\n \n-profile lxc-container-default-cgns flags=(attach_disconnected,mediate_deleted) {\n+profile lxc-container-default-cgns-with-proc-remount flags=(attach_disconnected,mediate_deleted) {\n   #include \u003Cabstractions\u002Flxc\u002Fcontainer-base>\n \n   # the container may never be allowed to mount devpts.  If it does, it\n@@ -10,4 +10,8 @@\n   deny mount fstype=devpts,\n   mount fstype=cgroup -> \u002Fsys\u002Ffs\u002Fcgroup\u002F**,\n   mount fstype=cgroup2 -> \u002Fsys\u002Ffs\u002Fcgroup\u002F**,\n+\n+  # This will allow remounting \u002Fproc, e.g. to add hidepid=2 mount option\n+  # The hidepid option doesn't need to be included here as it's not known by AppArmor.\n+  mount options=(rw, nosuid, nodev, noexec, remount, relatime) -> \u002Fproc\u002F,\n }\n","diff",[29,371,372,377,382,387,392,397,402,407,412,417,421,426,431,436,441,446,451,457,463,469],{"__ignoreMap":86},[103,373,374],{"class":105,"line":106},[103,375,376],{},"--- lxc-default-cgns\n",[103,378,379],{"class":105,"line":159},[103,380,381],{},"+++ lxc-default-cgns-with-proc-remount\n",[103,383,384],{"class":105,"line":174},[103,385,386],{},"@@ -1,7 +1,7 @@\n",[103,388,389],{"class":105,"line":189},[103,390,391],{}," # Do not load this file.  Rather, load \u002Fetc\u002Fapparmor.d\u002Flxc-containers, which\n",[103,393,394],{"class":105,"line":287},[103,395,396],{}," # will source all profiles under \u002Fetc\u002Fapparmor.d\u002Flxc\n",[103,398,399],{"class":105,"line":293},[103,400,401],{}," \n",[103,403,404],{"class":105,"line":298},[103,405,406],{},"-profile lxc-container-default-cgns flags=(attach_disconnected,mediate_deleted) {\n",[103,408,409],{"class":105,"line":304},[103,410,411],{},"+profile lxc-container-default-cgns-with-proc-remount flags=(attach_disconnected,mediate_deleted) {\n",[103,413,414],{"class":105,"line":310},[103,415,416],{},"   #include \u003Cabstractions\u002Flxc\u002Fcontainer-base>\n",[103,418,419],{"class":105,"line":316},[103,420,401],{},[103,422,423],{"class":105,"line":322},[103,424,425],{},"   # the container may never be allowed to mount devpts.  If it does, it\n",[103,427,428],{"class":105,"line":328},[103,429,430],{},"@@ -10,4 +10,8 @@\n",[103,432,433],{"class":105,"line":333},[103,434,435],{},"   deny mount fstype=devpts,\n",[103,437,438],{"class":105,"line":339},[103,439,440],{},"   mount fstype=cgroup -> \u002Fsys\u002Ffs\u002Fcgroup\u002F**,\n",[103,442,443],{"class":105,"line":345},[103,444,445],{},"   mount fstype=cgroup2 -> \u002Fsys\u002Ffs\u002Fcgroup\u002F**,\n",[103,447,448],{"class":105,"line":351},[103,449,450],{},"+\n",[103,452,454],{"class":105,"line":453},17,[103,455,456],{},"+  # This will allow remounting \u002Fproc, e.g. to add hidepid=2 mount option\n",[103,458,460],{"class":105,"line":459},18,[103,461,462],{},"+  # The hidepid option doesn't need to be included here as it's not known by AppArmor.\n",[103,464,466],{"class":105,"line":465},19,[103,467,468],{},"+  mount options=(rw, nosuid, nodev, noexec, remount, relatime) -> \u002Fproc\u002F,\n",[103,470,472],{"class":105,"line":471},20,[103,473,474],{}," }\n",[12,476,477],{},"You can then load the new AppArmor profile:",[79,479,481],{"className":97,"code":480,"language":99,"meta":86,"style":86},"$ apparmor_parser -r -W -T \u002Fetc\u002Fapparmor.d\u002Flxc-containers\n",[29,482,483],{"__ignoreMap":86},[103,484,485,487,490,493,496,499],{"class":105,"line":106},[103,486,110],{"class":109},[103,488,489],{"class":113}," apparmor_parser",[103,491,492],{"class":117}," -r",[103,494,495],{"class":117}," -W",[103,497,498],{"class":117}," -T",[103,500,501],{"class":113}," \u002Fetc\u002Fapparmor.d\u002Flxc-containers\n",[12,503,504,505,508,509,512],{},"Add the new AppArmor profile to the container config, using the new ",[51,506,507],{},"lxc.apparmor.profile"," key (on a Proxmox VE host, the container config can also be found here: ",[29,510,511],{},"\u002Fetc\u002Fpve\u002Flxc\u002F$VMID.conf","):",[79,514,516],{"className":97,"code":515,"language":99,"meta":86,"style":86},"$ pct config $VMID | grep lxc\nlxc.apparmor.profile: lxc-container-default-cgns-with-proc-remount\n",[29,517,518,541],{"__ignoreMap":86},[103,519,520,522,525,528,531,535,538],{"class":105,"line":106},[103,521,110],{"class":109},[103,523,524],{"class":113}," pct",[103,526,527],{"class":113}," config",[103,529,530],{"class":354}," $VMID ",[103,532,534],{"class":533},"s5nWI","|",[103,536,537],{"class":109}," grep",[103,539,540],{"class":113}," lxc\n",[103,542,543,546],{"class":105,"line":159},[103,544,545],{"class":109},"lxc.apparmor.profile:",[103,547,548],{"class":113}," lxc-container-default-cgns-with-proc-remount\n",[12,550,551,552,555],{},"Then, restart the container (again, we're on a Proxmox VE host system, so we use the fancy ",[29,553,554],{},"pct"," command instead of native low-level lxc commands):",[79,557,559],{"className":97,"code":558,"language":99,"meta":86,"style":86},"$ pct shutdown $VMID\n$ pct start $VMID\n",[29,560,561,573],{"__ignoreMap":86},[103,562,563,565,567,570],{"class":105,"line":106},[103,564,110],{"class":109},[103,566,524],{"class":113},[103,568,569],{"class":113}," shutdown",[103,571,572],{"class":354}," $VMID\n",[103,574,575,577,579,582],{"class":105,"line":159},[103,576,110],{"class":109},[103,578,524],{"class":113},[103,580,581],{"class":113}," start",[103,583,572],{"class":354},[12,585,586,587,589],{},"You can now set the procfs mount option in the container's ",[29,588,133],{},", as you used to do on a plain Linux system:",[79,591,594],{"className":592,"code":593,"language":85},[82],"proc  \u002Fproc  proc  defaults,noexec,nosuid,nodev,relatime,hidepid=2 0  0\n",[29,595,593],{"__ignoreMap":86},[12,597,598],{},"And it all works (check this inside the container):",[79,600,602],{"className":97,"code":601,"language":99,"meta":86,"style":86},"$ mount | grep '\u002Fproc '\nproc on \u002Fproc type proc (rw,nosuid,nodev,noexec,relatime)\n",[29,603,604,618],{"__ignoreMap":86},[103,605,606,608,610,613,615],{"class":105,"line":106},[103,607,110],{"class":109},[103,609,114],{"class":113},[103,611,612],{"class":533}," |",[103,614,537],{"class":109},[103,616,617],{"class":113}," '\u002Fproc '\n",[103,619,620,623,626,629,632,635],{"class":105,"line":159},[103,621,622],{"class":109},"proc",[103,624,625],{"class":113}," on",[103,627,628],{"class":113}," \u002Fproc",[103,630,631],{"class":113}," type",[103,633,634],{"class":113}," proc",[103,636,637],{"class":354}," (rw,nosuid,nodev,noexec,relatime)\n",[12,639,640,641,643],{},"But that will no longer work since ",[51,642,53],{},", so read on...",[65,645,647],{"id":646},"procfs-mount-options-in-lxc-21","Procfs mount options in LXC 2.1+",[12,649,650],{},"As above solution with a customized AppArmor profile did no longer work since LXC 2.1, I have posted this in LXC forums:",[234,652,653],{},[237,654,655],{},[16,656,659],{"href":657,"rel":658},"https:\u002F\u002Fdiscuss.linuxcontainers.org\u002Ft\u002Fhidepid-2-not-working-in-lxc\u002F2060",[25],"Hidepid=2 not working in lxc",[12,661,662,663,668,669,674,675,680],{},"a month later, a smart guy (thanks so much, ",[16,664,667],{"href":665,"rel":666},"https:\u002F\u002Fdiscuss.linuxcontainers.org\u002Fu\u002Fbrauner",[25],"@brauner","!) came up with ",[16,670,673],{"href":671,"rel":672},"https:\u002F\u002Fdiscuss.linuxcontainers.org\u002Ft\u002Fhidepid-2-not-working-in-lxc\u002F2060\u002F12",[25],"this workaround",". I was super happy about that solution, even though in my eyes it was still a workaround and until now I didn't find a cleaner solution than ",[16,676,679],{"href":677,"rel":678},"https:\u002F\u002Fdiscuss.linuxcontainers.org\u002Ft\u002Fhidepid-2-not-working-in-lxc\u002F2060\u002F18",[25],"that",".",[12,682,683,684,686],{},"So, this is the final solution: Add the following lines to your LXC container configuration, e.g. ",[29,685,511],{}," on a Proxmox VE host system):",[79,688,691],{"className":689,"code":690,"filename":511,"language":85,"meta":86},[82],"# ...\nlxc.mount.auto: \nlxc.mount.auto: sys:mixed cgroup:mixed\nlxc.mount.entry: proc proc proc rw,remount,nodev,nosuid,noexec,relatime,hidepid=2 0 0\nlxc.mount.entry: proc\u002Fsys proc\u002Fsys proc ro,bind,relative 0 0\nlxc.mount.entry: proc\u002Fsys\u002Fnet proc\u002Fsys\u002Fnet proc rw,bind,relative 0 0\nlxc.mount.entry: proc\u002Fsysrq-trigger proc\u002Fsysrq-trigger proc ro,bind,relative 0 0\nlxc.mount.entry: \u002Fvar\u002Flib\u002Flxcfs\u002Fproc\u002Fcpuinfo proc\u002Fcpuinfo none bind,optional 0 0\nlxc.mount.entry: \u002Fvar\u002Flib\u002Flxcfs\u002Fproc\u002Fdiskstats proc\u002Fdiskstats none bind,optional 0 0\nlxc.mount.entry: \u002Fvar\u002Flib\u002Flxcfs\u002Fproc\u002Fmeminfo proc\u002Fmeminfo none bind,optional 0 0\nlxc.mount.entry: \u002Fvar\u002Flib\u002Flxcfs\u002Fproc\u002Fstat proc\u002Fstat none bind,optional 0 0\nlxc.mount.entry: \u002Fvar\u002Flib\u002Flxcfs\u002Fproc\u002Fswaps proc\u002Fswaps none bind,optional 0 0\nlxc.mount.entry: \u002Fvar\u002Flib\u002Flxcfs\u002Fproc\u002Fuptime proc\u002Fuptime none bind,optional 0 0\n",[29,692,690],{"__ignoreMap":86},[12,694,695,696,698],{},"You will no longer need the custom AppArmor profile I have described above. If your LXC config still contains a ",[29,697,507],{}," line, remove it!",[12,700,701,702,705,706,708,709,711],{},"Once you restart your LXC container with those ",[29,703,704],{},"lxc.mount.*"," options, you don't even need to add the  ",[29,707,31],{}," mount option to the ",[29,710,133],{}," inside your container, as this is already done in above LXC configuration.",[357,713,714,719],{},[12,715,716],{},[51,717,718],{},"UPDATE 2021-08-20:",[12,720,721,722,730],{},"In latest ",[51,723,724,729],{},[16,725,728],{"href":726,"rel":727},"https:\u002F\u002Fproxmox.com\u002Fen\u002Fnews\u002Fpress-releases\u002Fproxmox-virtual-environment-7-0",[25],"Proxmox VE 7.0"," \u002F LXC 4.0.x",", I am still using this solution. Confirmed working. I will keep you posted if I find a simpler solution.",[732,733,734],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sQJ0q, html code.shiki .sQJ0q{--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657}html pre.shiki code .s-BGO, html code.shiki .s-BGO{--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF}html pre.shiki code .sDkKp, html code.shiki .sDkKp{--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF}html pre.shiki code .s9BHP, html code.shiki .s9BHP{--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E}html pre.shiki code .s_bOF, html code.shiki .s_bOF{--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3}html pre.shiki code .s5nWI, html code.shiki .s5nWI{--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72}",{"title":86,"searchDepth":159,"depth":174,"links":736},[737,738,739],{"id":67,"depth":159,"text":68},{"id":218,"depth":159,"text":219},{"id":646,"depth":159,"text":647},null,"2018-08-06","Hiding processes for other users using hidepid capabilities of procfs in an LXC container.",{"type":9,"value":744},[745,756],[12,746,14,747,20,749,27,752,32,754,36],{},[16,748,19],{"href":18},[16,750,26],{"href":23,"rel":751},[25],[29,753,31],{},[29,755,35],{},[12,757,39,758,43,760,49,763,54,765,60,768,63],{},[29,759,42],{},[16,761,48],{"href":46,"rel":762},[25],[51,764,53],{},[16,766,59],{"href":57,"rel":767},[25],[29,769,35],{},"md","\u002Fimages\u002Fcovers\u002Flxc-apparmor.jpg",{},"\u002Farticles\u002F20180806-lxc-hidepid-process-hiding",false,{"title":6,"description":742},"articles\u002F20180806-lxc-hidepid-process-hiding",[778,779,780,781],"sysadmin","linux","lxc","security","6GgczP5kjg5kf9Ir1WX0OsQ0hp2VOzAot4VaDId9UYU",[784,789],{"title":785,"path":786,"stem":787,"createdAt":788,"children":-1},"Simple and Secure External Backup","\u002Farticles\u002F20180306-simple-and-secure-external-backup","articles\u002F20180306-simple-and-secure-external-backup","2018-03-06",{"title":790,"path":791,"stem":792,"createdAt":793,"children":-1},"Automated Bayesian Spam\u002FHam Training with Rspamd","\u002Farticles\u002F20200311-rspamd-trainer-bayes","articles\u002F20200311-rspamd-trainer-bayes","2020-03-11",1794961391519]