diff options
author | Paul Lawrence <paullawrence@google.com> | 2014-10-07 11:31:48 -0700 |
---|---|---|
committer | Paul Lawrence <paullawrence@google.com> | 2014-10-08 15:24:37 -0700 |
commit | d4cea0bc16d1ad96cc6d6177232d7b339785460c (patch) | |
tree | eee2855b96c1057b13e27cc3386d8de08926a606 /fs_mgr/include | |
parent | 525db43bf5351865a0483eb7f20d171a4895788b (diff) | |
download | system_core-d4cea0bc16d1ad96cc6d6177232d7b339785460c.tar.gz system_core-d4cea0bc16d1ad96cc6d6177232d7b339785460c.tar.bz2 system_core-d4cea0bc16d1ad96cc6d6177232d7b339785460c.zip |
Enable verity on userdebug, and add disable-verity to adb
Bug: 17691572
Change-Id: I58f588f318e7952d06a41325337d946d7c007e31
Diffstat (limited to 'fs_mgr/include')
-rw-r--r-- | fs_mgr/include/fs_mgr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs_mgr/include/fs_mgr.h b/fs_mgr/include/fs_mgr.h index 0c7eb20d2..5e2ff416a 100644 --- a/fs_mgr/include/fs_mgr.h +++ b/fs_mgr/include/fs_mgr.h @@ -20,6 +20,13 @@ #include <stdint.h> #include <linux/dm-ioctl.h> +// Magic number at start of verity metadata +#define VERITY_METADATA_MAGIC_NUMBER 0xb001b001 + +// Replacement magic number at start of verity metadata to cleanly +// turn verity off in userdebug builds. +#define VERITY_METADATA_MAGIC_DISABLE 0x46464f56 // "VOFF" + #ifdef __cplusplus extern "C" { #endif @@ -74,6 +81,7 @@ int fs_mgr_add_entry(struct fstab *fstab, struct fstab_rec *fs_mgr_get_entry_for_mount_point(struct fstab *fstab, const char *path); int fs_mgr_is_voldmanaged(struct fstab_rec *fstab); int fs_mgr_is_nonremovable(struct fstab_rec *fstab); +int fs_mgr_is_verified(struct fstab_rec *fstab); int fs_mgr_is_encryptable(struct fstab_rec *fstab); int fs_mgr_is_noemulatedsd(struct fstab_rec *fstab); int fs_mgr_swapon_all(struct fstab *fstab); |