| 902 | } |
| 903 | |
| 904 | char * |
| 905 | label_mount (const char *opt, UNUSED const char *mount_label) |
| 906 | { |
| 907 | #ifdef HAVE_SELINUX |
| 908 | if (mount_label) |
| 909 | { |
| 910 | if (opt) |
| 911 | return xasprintf ("%s,context=\"%s\"", opt, mount_label); |
| 912 | else |
| 913 | return xasprintf ("context=\"%s\"", mount_label); |
| 914 | } |
| 915 | #endif |
| 916 | if (opt) |
| 917 | return xstrdup (opt); |
| 918 | return NULL; |
| 919 | } |
| 920 | |
| 921 | int |
| 922 | label_create_file (UNUSED const char *file_label) |
no test coverage detected