forked from microsoft/azurelinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge for Mariner 2.0 Dec 2023 Monthly Update. (microsoft#6878)
- Loading branch information
Showing
194 changed files
with
17,256 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"Signatures": { | ||
"blobfuse2-2.1.1.tar.gz": "6bbed0d7db05ecfe7b7e12b5c4506dde1e2ef018ce1ac6fe6c8b7d697af24968", | ||
"blobfuse2-2.1.1-vendor.tar.gz": "85cbf93aacaa63e583dd9a72f4823f9c993449d5f2ab2332d8b97b4bf91e7da0" | ||
"blobfuse2-2.1.2.tar.gz": "4605015d99c7ffac37ae464aa1d23c11ecd6218122acb06f1c46ac7bdced908e", | ||
"blobfuse2-2.1.2-vendor.tar.gz": "84229241b170316438aa408ae38216e01c54fffdbe50b59ae3b5ab1b4f7122c6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
From 23b2d8b498939723413a60adc6b29e37ec46b91e Mon Sep 17 00:00:00 2001 | ||
From: Chris PeBenito <chpebeni@linux.microsoft.com> | ||
Date: Wed, 25 Mar 2020 16:43:17 -0400 | ||
Subject: copy_file(): Revise completion of SELinux security context | ||
preserve/set. | ||
|
||
The existing setfscreatecon() at the beginning of copy_file() is the secure | ||
method for setting the context of new files, but it doesn't apply to | ||
existing files. Change the setfilecon() to only run on preexisting files. | ||
|
||
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com> | ||
|
||
diff -ur busybox-1.35.0.orig/libbb/copy_file.c busybox-1.35.0/libbb/copy_file.c | ||
--- busybox-1.35.0.orig/libbb/copy_file.c 2021-12-26 16:53:20.000000000 +0000 | ||
+++ busybox-1.35.0/libbb/copy_file.c 2023-08-16 22:04:45.557799523 +0000 | ||
@@ -327,19 +327,22 @@ | ||
if ((flags & (FILEUTILS_PRESERVE_SECURITY_CONTEXT|FILEUTILS_SET_SECURITY_CONTEXT)) | ||
&& is_selinux_enabled() > 0 | ||
) { | ||
- security_context_t con; | ||
- if (getfscreatecon(&con) == -1) { | ||
+ /* Failure to preserve the security context isn't fatal here since | ||
+ * the copy has been done at this point. */ | ||
+ security_context_t con = NULL; | ||
+ if (getfscreatecon(&con) < 0) | ||
bb_simple_perror_msg("getfscreatecon"); | ||
- return -1; | ||
- } | ||
- if (con) { | ||
- if (setfilecon(dest, con) == -1) { | ||
- bb_perror_msg("setfilecon:%s,%s", dest, con); | ||
- freecon(con); | ||
- return -1; | ||
- } | ||
- freecon(con); | ||
- } | ||
+ | ||
+ if (setfscreatecon(NULL) < 0) | ||
+ bb_perror_msg("can't reset fscreate"); | ||
+ | ||
+ /* setfscreatecon() only works when a file is created. If dest | ||
+ * preexisted, use setfilecon instead */ | ||
+ if (con && dest_exists) | ||
+ if (fsetfilecon(dst_fd, con) < 0) | ||
+ bb_perror_msg("fsetfilecon:%s,%s", dest, con); | ||
+ | ||
+ freecon(con); | ||
} | ||
#endif | ||
#if ENABLE_FEATURE_CP_REFLINK |
Oops, something went wrong.