[glib: 1/5] gio: ‘security_context_t’ is deprecated




commit 20e23c701c4710a37b446bca4ecd5d78e85b61c6
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Tue Dec 1 11:38:55 2020 +0400

    gio: ‘security_context_t’ is deprecated
    
    From:
    https://github.com/SELinuxProject/selinux/commit/9eb9c9327563014ad6a807814e7975424642d5b9
    
    "we found that the const security_context_t declarations in libselinux
    are incorrect; const char * was intended, but const security_context_t
    translates to char * const and triggers warnings on passing const char *
    from the caller. Easiest fix is to replace them all with const char *."
    
    And later marked deprecated in commit:
    https://github.com/SELinuxProject/selinux/commit/7a124ca2758136f49cc38efc26fb1a2d385ecfd9
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 gio/glocalfileinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index a4abef089..32a26d1b2 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -2715,7 +2715,7 @@ set_selinux_context (char                       *filename,
   }
 
   if (is_selinux_enabled ()) {
-       security_context_t val_s;
+       char *val_s;
        
        val_s = g_strdup (val);
        


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]