[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Replace uses of security_context_t with char *
From: |
Saagar Jha |
Subject: |
[PATCH] Replace uses of security_context_t with char * |
Date: |
Mon, 5 Jul 2021 22:43:02 -0700 |
gnulib no longer exposes this typedef, so we shouldn't use it anymore.
---
sed/execute.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sed/execute.c b/sed/execute.c
index 10b7296..4862e52 100644
--- a/sed/execute.c
+++ b/sed/execute.c
@@ -572,7 +572,7 @@ open_next_file (const char *name, struct input *input)
{
int input_fd;
char *tmpdir, *p;
- security_context_t old_fscreatecon;
+ char *old_fscreatecon;
int reset_fscreatecon = 0;
memset (&old_fscreatecon, 0, sizeof (old_fscreatecon));
@@ -593,7 +593,7 @@ open_next_file (const char *name, struct input *input)
if (is_selinux_enabled () > 0)
{
- security_context_t con;
+ char *con;
if (lgetfilecon (input->in_file_name, &con) != -1)
{
/* Save and restore the old context for the sake of w and W
--
2.32.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Replace uses of security_context_t with char *,
Saagar Jha <=