<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Is there a way to mount an ecryptfs directory within a LXD/LXC
container?<br>
<br>
All I've tried so far is:<br>
<br>
Editing, and reloading, /etc/apparmor.d/lxc/lxc-default [1][2]<br>
<br>
<pre style="box-sizing: border-box; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 16px; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; line-height: 1.45; word-wrap: normal; padding: 16px; overflow: auto; border-radius: 3px; color: rgb(51, 51, 51); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(247, 247, 247);"><code style="box-sizing: border-box; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; padding: 0px; margin: 0px; border-radius: 3px; word-break: normal; white-space: pre; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal; background: transparent;">mount options=(rw, bind),
</code><code style="box-sizing: border-box; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; padding: 0px; margin: 0px; border-radius: 3px; word-break: normal; white-space: pre; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal; background: transparent;">mount fstype=(ecryptfs),
</code></pre>
After reloading apparmor I still get this error message:<br>
<br class="Apple-interchange-newline">
<pre style="box-sizing: border-box; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 16px; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; line-height: 1.45; word-wrap: normal; padding: 16px; overflow: auto; border-radius: 3px; color: rgb(51, 51, 51); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(247, 247, 247);"><code style="box-sizing: border-box; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; padding: 0px; margin: 0px; border-radius: 3px; word-break: normal; white-space: pre; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal; background: transparent;">Exiting. Unable to obtain passwd info
</code></pre>
<br class="Apple-interchange-newline">
I'm wondering if anyone has already solved this<br>
<br>
<br>
[1]: <a class="moz-txt-link-freetext" href="https://gist.github.com/gionn/7585324">https://gist.github.com/gionn/7585324</a><br>
[2]:
<a class="moz-txt-link-freetext" href="https://www.reddit.com/r/LXC/comments/4d3tz2/how_to_use_ecryptfs_in_an_lxc/">https://www.reddit.com/r/LXC/comments/4d3tz2/how_to_use_ecryptfs_in_an_lxc/</a><br>
<br>
<br>
</body>
</html>