aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/label_file.c
diff options
context:
space:
mode:
authorRichard Haines <richard_c_haines@btinternet.com>2015-07-10 16:53:54 +0100
committerStephen Smalley <sds@tycho.nsa.gov>2015-07-10 12:30:09 -0400
commitf2cd2f821fa34e8c7a12744626e19208463aa4e2 (patch)
treec0eaa1c2bf81c138aaa15b19b56c602c4b432e0f /libselinux/src/label_file.c
parentfd60703766cc3ca685ce2b169d21918bc01ef718 (diff)
downloadandroid_external_selinux-f2cd2f821fa34e8c7a12744626e19208463aa4e2.tar.gz
android_external_selinux-f2cd2f821fa34e8c7a12744626e19208463aa4e2.tar.bz2
android_external_selinux-f2cd2f821fa34e8c7a12744626e19208463aa4e2.zip
libselinux: Add const to selinux_opt for label backends.
Change selabel_open and label backends to take a 'const struct selinux_opt' argument. This work has already been done for the Android version components. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
Diffstat (limited to 'libselinux/src/label_file.c')
-rw-r--r--libselinux/src/label_file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libselinux/src/label_file.c b/libselinux/src/label_file.c
index b4ee15df..b9276816 100644
--- a/libselinux/src/label_file.c
+++ b/libselinux/src/label_file.c
@@ -450,7 +450,7 @@ out:
return rc;
}
-static int init(struct selabel_handle *rec, struct selinux_opt *opts,
+static int init(struct selabel_handle *rec, const struct selinux_opt *opts,
unsigned n)
{
struct saved_data *data = (struct saved_data *)rec->data;
@@ -759,8 +759,9 @@ static void stats(struct selabel_handle *rec)
}
}
-int selabel_file_init(struct selabel_handle *rec, struct selinux_opt *opts,
- unsigned nopts)
+int selabel_file_init(struct selabel_handle *rec,
+ const struct selinux_opt *opts,
+ unsigned nopts)
{
struct saved_data *data;