2006-08-10 15:34:47 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsalibselinux/src/fgetfilecon.c libselinux-1.30.22/src/fgetfilecon.c
|
|
|
|
--- nsalibselinux/src/fgetfilecon.c 2006-07-03 07:52:49.000000000 -0400
|
|
|
|
+++ libselinux-1.30.22/src/fgetfilecon.c 2006-08-10 11:09:07.000000000 -0400
|
|
|
|
@@ -58,5 +58,8 @@
|
|
|
|
freecon(rcontext);
|
|
|
|
}
|
2006-05-18 16:15:35 +00:00
|
|
|
|
2006-08-10 15:34:47 +00:00
|
|
|
+ if (ret >= 0)
|
|
|
|
+ return strlen(*context);
|
2006-05-18 16:15:35 +00:00
|
|
|
+
|
2006-08-10 15:34:47 +00:00
|
|
|
return ret;
|
2006-06-09 19:43:52 +00:00
|
|
|
}
|
2006-08-10 15:34:47 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsalibselinux/src/getfilecon.c libselinux-1.30.22/src/getfilecon.c
|
|
|
|
--- nsalibselinux/src/getfilecon.c 2006-07-03 07:52:49.000000000 -0400
|
|
|
|
+++ libselinux-1.30.22/src/getfilecon.c 2006-08-10 11:09:59.000000000 -0400
|
|
|
|
@@ -57,6 +57,8 @@
|
|
|
|
ret = selinux_raw_to_trans_context(rcontext, context);
|
|
|
|
freecon(rcontext);
|
2006-06-21 19:58:52 +00:00
|
|
|
}
|
2006-08-10 15:34:47 +00:00
|
|
|
+ if (ret >= 0)
|
|
|
|
+ return strlen(*context);
|
2006-06-21 19:58:52 +00:00
|
|
|
|
2006-08-10 15:34:47 +00:00
|
|
|
return ret;
|
2006-06-20 20:30:59 +00:00
|
|
|
}
|
2006-08-10 15:34:47 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsalibselinux/src/lgetfilecon.c libselinux-1.30.22/src/lgetfilecon.c
|
|
|
|
--- nsalibselinux/src/lgetfilecon.c 2006-07-03 07:52:49.000000000 -0400
|
|
|
|
+++ libselinux-1.30.22/src/lgetfilecon.c 2006-08-10 11:06:59.000000000 -0400
|
|
|
|
@@ -58,5 +58,7 @@
|
|
|
|
freecon(rcontext);
|
2006-06-20 20:30:59 +00:00
|
|
|
}
|
|
|
|
|
2006-08-10 15:34:47 +00:00
|
|
|
+ if (ret >= 0)
|
|
|
|
+ return strlen(*context);
|
|
|
|
return ret;
|
2006-06-21 13:12:11 +00:00
|
|
|
}
|