Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acc69701 authored by Robert Craig's avatar Robert Craig Committed by Steve Kondik
Browse files

run-as: Get seinfo from packages.list and pass to libselinux.

parent 175d0d96
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -519,6 +519,17 @@ get_package_info(const char* pkgName, PackageInfo *info)

        string_copy(info->seinfo, sizeof info->seinfo, p, q - p);

        /* skip spaces */
        if (parse_spaces(&p, end) < 0)
            goto BAD_FORMAT;

        /* grab the seinfo string */
        q = skip_non_spaces(p, end);
        if (q == p)
            goto BAD_FORMAT;

        string_copy(info->seinfo, sizeof info->seinfo, p, q - p);

        /* Ignore the rest */
        result = 0;
        goto EXIT;