Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
When turning on selinux from inside the initramfs, the selinux commands used the locale specified for the system. But because the terminal is not yet ready for the locale in the initramfs, the resulting output of the selinux commands was garbled for locales, which differ in fonts to the default linux console. The new dracut initramfs now turns of localization for the selinux commands, which results in readable english messages. The initramfs is not localized anyway.
Created attachment 504003[details]
garbled screen
Description of problem:
Using Japanese ja_JP.UTF-8 environment,
the characters in load selinux policy message are garbled.
Version-Release number of selected component (if applicable):
dracut-004-53.el6
How reproducible:
always
Steps to Reproduce:
for example
1. Using Japanese ja_JP.UTF-8
2. SELinux is disabled
3. boot
Actual results:
Please see attached file(dracut-004-53.el6-selinux-loadpolycy-garbled.JPG)
Expected results:
Do not garble.
Additional info:
I think the languages other than Japanese to be garbled.
For instance, it is Chinese.
Japanese cannot be displayed with the console in RHEL6.0/6.1.
I think that it is because bogl packages became unsupported in RHEL6.
I have two plans for this issue.
Plan A :
This simple patch mainly adds force LANG=C to selinux load policy.
--- modules.d/99base/selinux-loadpolicy.sh.orig 2011-06-08 15:47:57.698559649 +0900
+++ modules.d/99base/selinux-loadpolicy.sh 2011-06-08 15:48:25.456746330 +0900
@@ -1,6 +1,11 @@
#!/bin/sh
# FIXME: load selinux policy. this should really be done after we switchroot
+# We can't Japanese on normal console at boot time, so force LANG=C.
+if [ "$LANG" = "ja_JP.UTF-8" ]; then
+ LANG=C
+fi
+
rd_load_policy()
{
# If SELinux is disabled exit now
I am tending to use LANG=C, because all the rest is not translated anyway.
Comment 7RHEL Program Management
2011-06-17 11:00:24 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update release.
(In reply to comment #6)
> I am tending to use LANG=C, because all the rest is not translated anyway.
I think that LANG=C is good in the default setting.
I think that a Japanese check of the patch is unnecessary.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
When turning on selinux from inside the initramfs, the selinux commands used the locale specified for the system. But because the terminal is not yet ready for the locale in the initramfs, the resulting output of the selinux commands was garbled for locales, which differ in fonts to the default linux console. The new dracut initramfs now turns of localization for the selinux commands, which results in readable english messages. The initramfs is not localized anyway.
Comment 11Alexander Todorov
2011-10-13 15:03:07 UTC
# grep load_policy selinux-loadpolicy.sh
rd_load_policy()
if [ -x "$NEWROOT/usr/sbin/load_policy" -o -x "$NEWROOT/sbin/load_policy" ]; then
# load_policy does mount /proc and /selinux in
# libselinux,selinux_init_load_policy()
if [ -x "$NEWROOT/sbin/load_policy" ]; then
out=$(LANG=C chroot "$NEWROOT" /sbin/load_policy -i 2>&1)
out=$(LANG=C chroot "$NEWROOT" /usr/sbin/load_policy -i 2>&1)
die "Machine in enforcing mode and cannot execute load_policy. To disable selinux, add selinux=0 to the kernel command line."
rd_load_policy
# rpm -qf selinux-loadpolicy.sh
dracut-004-247.el6.noarch
The actual command execution is prefixed with LANG=C. Moving to VERIFIED.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2011-1521.html
Created attachment 504003 [details] garbled screen Description of problem: Using Japanese ja_JP.UTF-8 environment, the characters in load selinux policy message are garbled. Version-Release number of selected component (if applicable): dracut-004-53.el6 How reproducible: always Steps to Reproduce: for example 1. Using Japanese ja_JP.UTF-8 2. SELinux is disabled 3. boot Actual results: Please see attached file(dracut-004-53.el6-selinux-loadpolycy-garbled.JPG) Expected results: Do not garble. Additional info: I think the languages other than Japanese to be garbled. For instance, it is Chinese.