summaryrefslogtreecommitdiff
path: root/lib/rpmts.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-01-05 14:09:47 +0000
committerjbj <devnull@localhost>2004-01-05 14:09:47 +0000
commitcf60d725654c1d9bb354a0f71d274e60b781040c (patch)
treeccf76799ddf040cc8bf4496b84c0c44e4a74359c /lib/rpmts.c
parentc305927d5d7e7e4a4bb13e168c7888c6fa1d7e33 (diff)
downloadlibrpm-tizen-cf60d725654c1d9bb354a0f71d274e60b781040c.tar.gz
librpm-tizen-cf60d725654c1d9bb354a0f71d274e60b781040c.tar.bz2
librpm-tizen-cf60d725654c1d9bb354a0f71d274e60b781040c.zip
add --with-selinux, move selinux stubs to system.h.
CVS patchset: 7063 CVS date: 2004/01/05 14:09:47
Diffstat (limited to 'lib/rpmts.c')
-rw-r--r--lib/rpmts.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c
index e29bc3342..1b54ac717 100644
--- a/lib/rpmts.c
+++ b/lib/rpmts.c
@@ -939,13 +939,14 @@ void rpmtsSetScriptFd(rpmts ts, FD_t scriptFd)
}
}
+int rpmtsSELinuxEnabled(rpmts ts)
+{
+ return (ts != NULL ? ts->selinuxEnabled : 0);
+}
+
int rpmtsChrootDone(rpmts ts)
{
- int chrootDone = 0;
- if (ts != NULL) {
- chrootDone = ts->chrootDone;
- }
- return chrootDone;
+ return (ts != NULL ? ts->chrootDone : 0);
}
int rpmtsSetChrootDone(rpmts ts, int chrootDone)
@@ -1439,6 +1440,8 @@ rpmts rpmtsCreate(void)
ts->currDir = NULL;
ts->chrootDone = 0;
+ ts->selinuxEnabled = is_selinux_enabled();
+
ts->numAddedPackages = 0;
ts->addedPackages = NULL;