# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots
# directory
-SYNC_ACLS="no"
+SYNC_ACL="no"
# start comparing pre- and post-snapshot in background after creating
</varlistentry>
<varlistentry>
- <term><option>SYNC_ACLS=<replaceable>boolean</replaceable></option></term>
+ <term><option>SYNC_ACL=<replaceable>boolean</replaceable></option></term>
<listitem>
<para>Defines whether snapper will sync the users and groups from
- ALLOW_USERS and ALLOW_GROUPS to the <filename>.snapshots</filename>
+ ALLOW_USERS and ALLOW_GROUPS to the ACL of the <filename>.snapshots</filename>
directory.</para>
<para>Also see the PERMISSONS section in
<citerefentry><refentrytitle>snapper</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
<para><command>setfacl -m u:tux:rx .snapshots</command></para>
</listitem>
</itemizedlist>
- <para>The last method can be performed by snapper, see the SYNC_ACLS setting in
+ <para>The last method can be performed by snapper, see the SYNC_ACL setting in
<citerefentry><refentrytitle>snapper-configs</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
</refsect1>
<citerefentry><refentrytitle>pam_snapper</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>btrfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>lvm</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
- <citerefentry><refentrytitle>attr</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+ <citerefentry><refentrytitle>attr</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
+ <citerefentry><refentrytitle>acl</refentrytitle><manvolnum>5</manvolnum></citerefentry>
</para>
</refsect1>
config_info->save();
if (raw.find(KEY_ALLOW_USERS) != raw.end() || raw.find(KEY_ALLOW_GROUPS) != raw.end() ||
- raw.find(KEY_SYNC_ACLS) != raw.end())
+ raw.find(KEY_SYNC_ACL) != raw.end())
{
bool sync_acl;
- if (config_info->getValue(KEY_SYNC_ACLS, sync_acl) && sync_acl == true)
- syncAcls();
+ if (config_info->getValue(KEY_SYNC_ACL, sync_acl) && sync_acl == true)
+ syncAcl();
}
}
void
- Snapper::syncAcls() const
+ Snapper::syncAcl() const
{
vector<uid_t> uids;
vector<string> users;
}
}
- syncAcls(uids, gids);
+ syncAcl(uids, gids);
}
void
- Snapper::syncAcls(const vector<uid_t>& uids, const vector<gid_t>& gids) const
+ Snapper::syncAcl(const vector<uid_t>& uids, const vector<gid_t>& gids) const
{
SDir infos_dir = openInfosDir();
void setConfigInfo(const map<string, string>& raw);
- void syncAcls() const;
+ void syncAcl() const;
private:
void loadIgnorePatterns();
- void syncAcls(const vector<uid_t>& uids, const vector<gid_t>& gids) const;
+ void syncAcl(const vector<uid_t>& uids, const vector<gid_t>& gids) const;
ConfigInfo* config_info;
#define KEY_ALLOW_USERS "ALLOW_USERS"
#define KEY_ALLOW_GROUPS "ALLOW_GROUPS"
-#define KEY_SYNC_ACLS "SYNC_ACLS"
+#define KEY_SYNC_ACL "SYNC_ACL"
#endif