return confinement;
}
-void
-bus_apparmor_confinement_unref (BusAppArmorConfinement *confinement)
-{
-#ifdef HAVE_APPARMOR
- if (!apparmor_enabled)
- return;
-
- _dbus_assert (confinement != NULL);
- _dbus_assert (confinement->refcount > 0);
-
- confinement->refcount -= 1;
-
- if (confinement->refcount == 0)
- {
- /**
- * Do not free confinement->mode, as libapparmor does a single malloc for
- * both confinement->label and confinement->mode.
- */
- free (confinement->label);
- dbus_free (confinement);
- }
-#endif
-}
-
void
bus_apparmor_audit_init (void)
{
#endif
}
+void
+bus_apparmor_confinement_unref (BusAppArmorConfinement *confinement)
+{
+#ifdef HAVE_APPARMOR
+ if (!apparmor_enabled)
+ return;
+
+ _dbus_assert (confinement != NULL);
+ _dbus_assert (confinement->refcount > 0);
+
+ confinement->refcount -= 1;
+
+ if (confinement->refcount == 0)
+ {
+ /**
+ * Do not free confinement->mode, as libapparmor does a single malloc for
+ * both confinement->label and confinement->mode.
+ */
+ free (confinement->label);
+ dbus_free (confinement);
+ }
+#endif
+}
+
void
bus_apparmor_confinement_ref (BusAppArmorConfinement *confinement)
{