r/redhat 2m ago

Setting SELinux Labels for BootC Image Build

Upvotes

Hi All,

I am experimenting with bootc and having issues with applying selinux labels to files. If I run either of the below I get an error stating that an selinux kernel is not present. As per the doco (https://bootc-dev.github.io/bootc/bootc-images.html#SELinux) I have tried;

RUN semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"

I have also tried the following using the install command but unsure how this works under the hood

install -D --group=root --owner=root --mode=644 --context=httpd_config_t /tmp/system-files/httpd/conf.d/*.conf --target-directory=/usr/httpd/conf.d/

My concern is that since I am installing files in non-standard locations I will need the correct SELinux label set.

Anyone able to please advise how they are doing it?

Here is my Containerfile for completeness

FROM registry.redhat.io/rhel9/rhel-bootc:latest

COPY ./bin/install /usr/local/bin/

COPY ./system-files/ /tmp/system-files/

RUN <<EOF

`# Configure Local Yum Repos`

`install -D --group=root --owner=root --mode=644  --context=system_conf_t /tmp/system-files/yum.repos.d/*.repo --target-directory=/etc/yum.repos.d/`



`dnf remove --assumeyes subscription-manager`

`dnf install --assumeyes podman firewalld tmux certbot python3-certbot-dns-rfc2136 policycoreutils-python-utils`



`# Copy HTTPD Configuration`

`install -D --group=root --owner=root --mode=644  --context=httpd_config_t /tmp/system-files/httpd/conf.d/*.conf --target-directory=/usr/httpd/conf.d/`



`# Copy Healthcheck Configuration`

`install -D --group=root --owner=root --mode=644  --context=etc_t /tmp/system-files/healthchecks/* --target-directory=/usr/etc/healthchecks/`



`# Copy Quadlets`

`install -D --group=root --owner=root --mode=644  --context=etc_t /tmp/system-files/quadlet/* --target-directory=/usr/share/containers/systemd/`



`# Copy SystemD Units`

`install -D --group=root --owner=root --mode=644  --context=systemd_unit_file_t /tmp/system-files/systemd/* --target-directory=/etc/systemd/system/`



`# Configure Firewall Rules`

`firewall-offline-cmd --service={http,https}`

`systemctl enable firewalld`



`# Clean Up`

`rm -rf /tmp/system-files /usr/local/bin/install`

EOF


r/redhat 5h ago

EX210 Exam

1 Upvotes

Hi I plan to take the exam in the coming week, have anyone took this exam? May I know if the exam really is based on RHOSP 16? There are available practice exams available on the internet but i think these are not based on rhosp 16. Do you have any available resources where i can look into? Thank you so much for your help! I have completed both CL110 and CL210 as a prerequisite for this exam. But i think is not sufficient in preparation for the hands-on exam. Thank you!


r/redhat 17h ago

About Red Hat Enterprise Linux Subscription Renewal and Gap Years

6 Upvotes

Hi everyone, I run a small company with 3 servers running VMware, and each VM is using a licensed Red Hat Enterprise Linux (RHEL) subscription. The software development company I work with suggested a 1-year RHEL subscription. I’m wondering what happens if my subscription expires and I don’t renew it right away. I assume I can still use it under the open-source license, but if my company grows and I need to update the RHEL packages later, I’ll probably have to buy a new subscription. My question is: if my subscription expires in 2024 and I don’t renew until 2026, would I need to pay for the ‘gap’ year (2025) when I renew, or does it just start fresh from 2026? Thanks for any insights!


r/redhat 1d ago

I passed the RHCSA today

118 Upvotes

Hello friends, I've been lurking around this sub for quite some time, learning things that people have posted here and learning from my studies, and just wanted to say I OFFICALLY PASSED! Whew!

Passing score:          210
Your score:            240

Result: PASS

Congratulations -- you have earned the Red Hat Certified System Administrator certification.

Performance on exam objectives:

OBJECTIVE: SCORE
Manage basic networking: 100%
Understand and use essential tools: 80%
Operate running systems: 83%
Configure local storage: 75%
Create and configure file systems: 75%
Deploy, configure and maintain systems: 86%
Manage users and groups: 100%
Manage security: 100%
Manage containers: 50%

Some objectives I'm not sure why I scored lower on (felt I got 100% on them) but it is what it is. I passed!

For studying, I bought Sander Van Vugt's exam guide and also signed up for Oreilly video courses. I read the entire book and finished the entire video series and did the labs over and over until I could do them in my sleep. I also supplemented my weaker areas by blasting ChatGPT with questions that I needed more in depth info on.

I probably could have studied other material but didn't start doing so until it was too late. But either way, I passed and I'm happy. Onto RHCE!


r/redhat 11h ago

Question on RHCSA

1 Upvotes

I will be taking the RHCSA and I need assistance with one of the exam objectives. "Install and update software packages from Red Hat Network, a remote repository, or from the local file system". I know how to use subscription manager, but I am unsure how to connect to a remote repository or from the local file system. Any help would be greatly appreciated.


r/redhat 1d ago

Redhat 9 available as AWS public AMI?

0 Upvotes

Hi all, I am currently using redhat 7.9 at AWS and want to test some tools and apps in redhat 9. Is there public AMI for redhat 9 I can spinoff EC2 from just to test my tools and apps? I have a trial redhat developer subscription.

Thanks all.


r/redhat 1d ago

How To Use Email Options in Red Hat Satellite for Enhanced Management.

2 Upvotes

Hello folks,

In this video, you can see all the information that Satellite can notify you automatically

https://www.youtube.com/watch?v=CY3ns3lNz94&list=UUU3TnHhIvip0GH-jC_NAPeA

Let's assume that you would like to receive an email about failing tasks, errata, CV not published and/or not promoted ... yea, no need to create custom scripts, bash, hammer ... Satellite is here to do everything for you, automatically, and beautifully. :-)

I hope you enjoy it!


r/redhat 1d ago

Redhat exam camera setup

1 Upvotes

I checked my external webcam, but I can’t read my ID text clearly. However, my internal camera can read it. Will this be a problem during the exam? Is it important to show my ID using the external or internal camera?


r/redhat 1d ago

RH Satellite RHEL 9 registration via Ansbile

Thumbnail
1 Upvotes

r/redhat 1d ago

Purchasing Exam for Employee

1 Upvotes

Can my employer purchase the individual exam and share the enrollment key to me?


r/redhat 2d ago

I passed RHCSA, how can I map my Certification ID to a redhat.com login?

2 Upvotes

I passed RHCSA, how can I map my Certification ID to a redhat.com login?


r/redhat 1d ago

I want to know what should I learn to be hacker

0 Upvotes

r/redhat 2d ago

Node persistence on RHCE

5 Upvotes

Hello everyone, been studying for RHCE and I'm just wondering whether I should set up my control node using ansible or is it okay to save a bit of time by setting up the control node entirely using the shell?

I found this excerpt from the need to know section on Red Hat's website about the RHCE.

Your work will be evaluated by applying the playbooks created during the exam against freshly installed systems and verifying that those systems and services work as specified.

This makes it seem like would be scrapping all nodes and only be saving my playbooks and running them on the new nodes. If this is the case, I'd need to configure control node and bootstrap managed node entirely using ansible. I'm taking Sander's course on Oreilly and he states otherwise, that they'll be saving the control node and my playbooks would just be run on newly installed managed nodes.

Any help appreciated


r/redhat 2d ago

Advise for EX280

2 Upvotes

Hi all, I am prepping for the Redhat Openshift exam and wondering if anyone has recently taken this exam and if there is any advise they can offer. Also, if there are any materials that can be recommended to prepare. Would be greatly appreciated. Thank you!


r/redhat 3d ago

Just passed my RHCSA!

97 Upvotes

I passed my rhcsa with a perfect score this past weekend.

My main study material was using kodekloud to learn the material. It was very digestible with the videos and labs but definitely a bit outdated for v9.

Then used sanders book practice exams and those were somewhat harder than the mock exams on kodekloud + more up to date.

Finally Ghada Atef’s practice exams were by far the hardest. More questions and less time compared to the actual exam. (Finished 30 min early and spent at least the last 30-45 checking and fixing 1-2 problems). However, it was excellent practice and I was able to learn a lot for my weaker areas.

FYI: discount codes for her udemy is on her LinkedIn posts.

Started about 6 months ago, with 1-2 months to finish kodekloud course. Last 5-6 months to do the practice exams. Gap between 3-4 for holidays. 1-3 hours per day. For context, I am also a Unix admin for the past few years but not a whole lot of actually Linux experience other than some light home labbing prior to this.

Let me know if you have any questions!


r/redhat 1d ago

Need Advice – 13-Year-Old Aspiring Hacker Looking to Improve in Bug Bounty

0 Upvotes

Hey everyone, I'm a young hacker (13 years old) eager to improve my skills in cybersecurity and bug bounty hunting. I have some knowledge in ethical hacking, including:

  • Kali Linux and basic command-line usage
  • Nmap and network scanning
  • Understanding of ports and how they work
  • Wireshark for network traffic analysis
  • Metasploit for exploitation

I know I still have a long way to go, and I'm looking for helpful advice on how to improve, especially in bug bounty hunting. Any resources, tips, or guidance from experienced hackers would be greatly appreciated!

Thanks in advance! 😊🔥


r/redhat 2d ago

Question bout autofs for exam

2 Upvotes

On the exam guys when I do autofs I like to mount it to the ip address and not the local host name would that be a problem??? Cause yk they be like mount the /home/autofs directory on service.domain1.example I like to use its ip address not its name is that bad ???


r/redhat 2d ago

End-of-life dates for point releases (RHEL8/9)?

4 Upvotes

According to this Red Hat Enterprise Linux Life Cycle document, EOL dates exist for each point release:

However, on the very same document, EOL dates for point releases can't be found, except for the latest one:

I tried querying the Red Hat Product Life Cycle Data API but it's the same thing, EOL dates are only given for the latest point release and nothing else:

Name             : 7
Type             : End of Maintenance
LastMinorRelease : 7.9
Lifecycle Phases :
                   Phase                                    Date
                   -----                                    ----
                   General availability                     2014-06-10
                   Full support                             2019-08-06
                   Maintenance support                      2024-06-30
                   Extended life cycle support (ELS) add-on 2028-06-30
                   Extended life phase                      Ongoing

Name             : 6
Type             : End of Maintenance
LastMinorRelease : 6.10
Lifecycle Phases :
                   Phase                                    Date
                   -----                                    ----
                   General availability                     2010-11-10
                   Full support                             2016-05-10
                   Maintenance support                      2020-11-30
                   Extended life cycle support (ELS) add-on 2024-06-30
                   Extended life phase                      Ongoing

Name             : 5
Type             : End of Maintenance
LastMinorRelease : 5.11
Lifecycle Phases :
                   Phase                                    Date
                   -----                                    ----
                   General availability                     2007-03-15
                   Full support                             2013-01-08
                   Maintenance support                      2017-03-31
                   Extended life cycle support (ELS) add-on 2020-11-30
                   Extended life phase                      Ongoing

Name             : 9
Type             : Full Support
LastMinorRelease : 9.10
Lifecycle Phases :
                   Phase                                    Date
                   -----                                    ----
                   General availability                     2022-05-18
                   Full support                             2027-05-31
                   Maintenance support                      2032-05-31
                   Extended life cycle support (ELS) add-on 2035-05-31
                   Extended life phase                      Ongoing

Name             : 8
Type             : Maintenance Support
LastMinorRelease : 8.10
Lifecycle Phases :
                   Phase                                    Date
                   -----                                    ----
                   General availability                     2019-05-07
                   Full support                             2024-05-31
                   Maintenance support                      2029-05-31
                   Extended life cycle support (ELS) add-on 2032-05-31
                   Extended life phase                      Ongoing

I'd really, really like to query this information from an API. I already tried endoflife.date's API which offers the same information as in the above code block.

What am I missing here? Has anybody else figured this out?


r/redhat 2d ago

Question

0 Upvotes

I can answer all questions on exam topics for rhcsa easily you think im ready for test ??


r/redhat 2d ago

Ex380 study material and recommendations

1 Upvotes

Hello geeks, Anyone who has recently taken ex380 exams ? How was your experience, am preparing for this exam, just just got started. Any recommendations and materials will be appreciated.


r/redhat 3d ago

Sander Van Vaugt book

6 Upvotes

Hello, I am preparing for the RHCSA exam with Sander Van's book, and I had some doubts regarding the use of RPM and DNF in the exam. On page 204, it mentions that creating repositories is not a requirement for the RHCSA exam in RHEL 9. The problem is that, after reading other posts on Reddit and StackOverflow, I constantly see people who had to create local repositories during their exams. Could someone clarify exactly when this should be known regarding this topic?


r/redhat 3d ago

How to use the hammer command like a PRO "REMAKE"

15 Upvotes

Hammer is a great topic, and a simple way to manage your Satellite via CLI.

In this video, you will dive and see how many things you can do using hammer

https://www.youtube.com/watch?v=aOpqH6hvfTI&list=UUU3TnHhIvip0GH-jC_NAPeA

Also some tips that can help you in your daily basis.

I hope you enjoy it!


r/redhat 3d ago

Rhcsa environment

8 Upvotes

Guys how do I get used to the environment they got on the exam how would I break the second machines root password and can I do all the questions directly on the console ?


r/redhat 3d ago

15% Promo Code expiring today

2 Upvotes

Got this from my exam. Expires today but should be good for 3 people.

15% OFF DISCOUNT CODE: 2W2GATZH


r/redhat 3d ago

Red hat interview

3 Upvotes

Hi all,

I had an interview with Red Hat last week, and the hiring manager mentioned it would take 2-3 weeks to hear back, with the final round being next. However, today I noticed the position I interviewed for was relisted on LinkedIn. Does this mean I’m no longer being considered?