Fix compilation failure with sepgsql
authorMichael Paquier <michael@paquier.xyz>
Wed, 15 Jul 2020 00:42:21 +0000 (09:42 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 15 Jul 2020 00:42:21 +0000 (09:42 +0900)
One change for getObjectIdentity() has been missed in 2a10fdc, causing
the module to not compile properly.  This was actually the only problem,
and it happens that it is easy enough to check the compilation of the
module on Debian after installing libselinux1-dev.

Per buildfarm member rhinoceros.

contrib/sepgsql/relation.c

index b50f386f5b38a622c60550012cbb6cf42a65a127..96c57854a21af1bb2b52a7fe8863ac389be3bb2a 100644 (file)
@@ -546,7 +546,7 @@ sepgsql_relation_truncate(Oid relOid)
    object.classId = RelationRelationId;
    object.objectId = relOid;
    object.objectSubId = 0;
-   audit_name = getObjectIdentity(&object);
+   audit_name = getObjectIdentity(&object, false);
 
    sepgsql_avc_check_perms(&object,
                            tclass,