mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-13 07:13:35 +08:00
only allow manipulation of runtime settings via xattrs. closes #22
This commit is contained in:
@ -34,11 +34,9 @@
|
||||
#include "ugid.hpp"
|
||||
#include "fs.hpp"
|
||||
#include "config.hpp"
|
||||
#include "assert.hpp"
|
||||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using mergerfs::Policy;
|
||||
|
||||
static
|
||||
int
|
||||
@ -80,9 +78,6 @@ namespace mergerfs
|
||||
const config::Config &config = config::get();
|
||||
const ugid::SetResetGuard ugid(fc->uid,fc->gid);
|
||||
|
||||
if(fusepath == config.controlfile)
|
||||
return -EPERM;
|
||||
|
||||
return _truncate(*config.action,
|
||||
config.srcmounts,
|
||||
fusepath,
|
||||
|
Reference in New Issue
Block a user