Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Christopher Co bd35faa646
fix: add scriptlet to workaround rpm transaction limitation to update /media symlink to directory (#6950)
Prior to filesystem-1.1-16, /media used to be a symlink to /run/media but this was
replaced with a directory. The RPM upgrade operation generally worked when the /media
symlink is a dangling link, which is commonly the case, however not always the case.

And when the /media symlink is indeed properly pointing to a real /run/media, RPM has a
known limitation where it is not possible to replace an active symlink with a directory,
and thus the RPM transation fails.

To workaround this, a %pretrans scriptlet must run to test and remove the symlink
before RPM attempts to install the new directory.

https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement

Fixes: e2d3d55ce1 ("fix: make /media a directory")

Signed-off-by: Chris Co <chrco@microsoft.com>
2023-12-11 15:26:04 -08:00
Dan Streetman 070adde7a1 add /etc/host.conf with multi on
Fixes: #6925
2023-12-07 13:58:43 -05:00
Chris PeBenito 47ed0529c5
Add /opt/containerd/{bin,lib} to RPMs and cherry-pick fix for systemd-hostnamed default-hostname in SELinux. (#6311)
* filesystem: Restore /opt.

/opt is part of FHS. This fixes an issue on SELinux systems where
containerd will create /opt but we'd prefer not to allow this in
the policy.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>

* selinux-policy: systemd-hostnamed fix.

Cherry pick systemd-hostnamed fix for handling /run/systemd/default-hostname.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>

* containerd: Precreate /opt/containerd/{bin,lib}.

These are created by io.containerd.internal.v1.opt but it results in the
dirs having incorrect SELinux lables.  Creating them in the package will
ensure correct labeling.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>

---------

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
2023-10-12 10:31:13 -04:00
Christopher Co e2d3d55ce1
fix: make /media a directory (#6378)
Currently, /media is a symlink to /run/media, however /run is a tmpfs so
the symlink does not persist across reboots.

Generally the symlink is not useful and having it present is fragile. So
instead change /media to a proper directory in accordance with the Linux
Filesystem Hierarchy standard.

Signed-off-by: Chris Co <chrco@microsoft.com>
2023-10-11 19:30:01 -07:00
Daniel McIlvaney 3ea38d825e
Fix bogus changelog times in toolchian packages (#5786) 2023-07-03 11:52:59 -07:00
Tobias Brick 4f65995359
revert: Remove umask handling from bash.spec and change it in filesystem.spec (#5767)
Change #5528 refactored how umask is set during profile load. However, this broke certain customers who had modified/replaced /etc/profile. This pull reverts those changes.
2023-06-30 19:48:11 -07:00
AZaugg fbdde829ab
Registering /usr/local/sbin within filesystem package (#5678)
The location /usr/local/sbin is part of FHS (Filesystem Hierarchy Standard)
adding this path to package.
2023-06-14 09:34:06 -07:00
Tobias Brick 33106ca0ad
Remove umask handling from bash.spec and change it in filesystem.spec (#5528) 2023-05-22 18:07:12 -07:00
tgopinath-microsoft 270fb6f538
Create missing systemd accounts (#3775)
Presently, systemd-oom and systemd-coredump service accounts are not created during RPM install and are created on initial boot. Create these users and groups during installation like other generic systemd accounts.

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>
Co-authored-by: Olivia Crain <oliviacrain@microsoft.com>
2022-10-11 15:42:46 -07:00
Minghe Ren e519da0abd
Security changes to meet Azure security baseline (#3713)
* first commit of MarinerFedRamp2.0

* first commit for FedRAMP2.0

* patched all the asc cases in source code

* address Daniel's review comments for Mariner 2.0 FedRAMP

* move dsiabling ICMP redirect from source to packer

* Update SPECS/shadow-utils/shadow-utils.spec

Co-authored-by: Christopher Co <35273088+christopherco@users.noreply.github.com>

* Update SPECS/fedramp/fedramp.spec

Co-authored-by: Christopher Co <35273088+christopherco@users.noreply.github.com>

* address the comments in 2nd round reviews

* add asc.spec to replace fedramp.spec

* delete fedramp spec

* fix typo and remove changes for system-password

* update manifest file

* remove some unnecessary changes

* add empty line at end

* update to pass PR check

* address 1st round review comments

* update changelog for license

* address review comments

* remove ssh access

Co-authored-by: rmhsawyer <mingheren@gmail.com>
Co-authored-by: Christopher Co <35273088+christopherco@users.noreply.github.com>
2022-09-13 11:33:30 -07:00
Olivia Crain 64566e6c58
filesystem: Fix issues when upgrading in container (#3181) 2022-06-16 17:40:57 -07:00
brendank310 9e26fdd269
filesystem: add input handling for {forward,backward}-word (#3028)
Signed-off-by: Brendan Kerrigan <bkerrigan@microsoft.com>

Co-authored-by: Brendan Kerrigan <bkerrigan@microsoft.com>
2022-05-20 09:04:42 -07:00
Joe Schmitt 62103bd568
Improve spec file compatibility [2/2] (#163) 2020-10-07 13:22:31 -07:00
Jon Slobodzian b877013b27 Initial CBL-Mariner commit to GitHub 2020-08-06 20:17:52 -07:00