diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-03-12 09:08:26 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-03-12 09:08:26 +0200 |
commit | d99e82c633f345dc2cfac325e812a7e91a64616a (patch) | |
tree | b3aa6015b26ea639758251555f4e3940502f640f /src/apk_database.h | |
parent | 5fdc391c109fd9a161401778527fc2dc4a28988c (diff) | |
download | apk-tools-d99e82c633f345dc2cfac325e812a7e91a64616a.tar.gz apk-tools-d99e82c633f345dc2cfac325e812a7e91a64616a.tar.bz2 apk-tools-d99e82c633f345dc2cfac325e812a7e91a64616a.tar.xz apk-tools-d99e82c633f345dc2cfac325e812a7e91a64616a.zip |
audit: include all files in etc/apk in overlay
This implements a new protected path flag '!' to include always
matching entries in the backup mode (overlay). This is also turned
on for etc/apk to include everything there in overlay, because
the full list of repositories and signing keys need to be in
overlay - just getting them from a package is not enough during
bootstrap.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r-- | src/apk_database.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/apk_database.h b/src/apk_database.h index 3d557bd..74af494 100644 --- a/src/apk_database.h +++ b/src/apk_database.h @@ -38,10 +38,16 @@ struct apk_db_file { char name[]; }; +enum apk_protect_mode { + APK_PROTECT_NONE = 0, + APK_PROTECT_CHANGED, + APK_PROTECT_SYMLINKS_ONLY, + APK_PROTECT_ALL, +}; + struct apk_protected_path { char *relative_pattern; - unsigned protected : 1; - unsigned symlinks_only : 1; + unsigned protect_mode : 4; }; APK_ARRAY(apk_protected_path_array, struct apk_protected_path); @@ -58,8 +64,7 @@ struct apk_db_dir { unsigned short refs; unsigned short namelen; - unsigned protected : 1; - unsigned symlinks_only : 1; + unsigned protect_mode : 4; unsigned has_protected_children : 1; unsigned modified : 1; unsigned recalc_mode : 1; |