Skip to contentSkip to conversation

security:policydb.h Fix a space with "SE Linux"

PATCH NAK Justin P. Mattock 3 participants 5 messages Jun 9, 2010 – Jun 10, 2010 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 security:policydb.h Fix a space with "SE Linux"

Fix the space between "SE Linux", to match the other definitions of "SELinux", in the system.

---
 security/selinux/ss/policydb.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
security/selinux/ss/policydb.h +1 -1
index 26d9adf..7da08b2 100644
@@ -281,7 +281,7 @@ extern int policydb_read(struct policydb *p, void *fp);
 #define OBJECT_R_VAL 1
 
 #define POLICYDB_MAGIC SELINUX_MAGIC
-#define POLICYDB_STRING "SE Linux"
+#define POLICYDB_STRING "SELinux"
 
 struct policy_file {
 	char *data;
Signature · 7 lines
1.7.1.rc1.21.gf3bd6


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 4 lines · Justin P. Mattock

Fix the space between "SE Linux", to match the other definitions of "SELinux", in the system.

NAK, please look at how this is used.

Quoted 27 lines
---
 security/selinux/ss/policydb.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
security/selinux/ss/policydb.h +1 -1
index 26d9adf..7da08b2 100644
@@ -281,7 +281,7 @@ extern int policydb_read(struct policydb *p, void *fp);
 #define OBJECT_R_VAL 1
 
 #define POLICYDB_MAGIC SELINUX_MAGIC
-#define POLICYDB_STRING "SE Linux"
+#define POLICYDB_STRING "SELinux"
 
 struct policy_file {
 	char *data;
Signature · 7 lines
1.7.1.rc1.21.gf3bd6


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
Signature · 7 lines
James Morris
<[email protected]>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 9 lines · James Morris
Quoted 4 lines · Justin P. Mattock

Fix the space between "SE Linux", to match the other definitions of "SELinux", in the system.

NAK, please look at how this is used.

ahh.. I thought this was printk ing things
into dmesg.. but it's not it's a strlen.

Quoted 23 lines
Quoted 23 lines

---
  security/selinux/ss/policydb.h |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
security/selinux/ss/policydb.h +1 -2
index 26d9adf..7da08b2 100644
@@ -281,7 +281,7 @@ extern int policydb_read(struct policydb *p, void *fp);
  #define OBJECT_R_VAL 1
 
  #define POLICYDB_MAGIC SELINUX_MAGIC
-#define POLICYDB_STRING "SE Linux"
+#define POLICYDB_STRING "SELinux"
 
  struct policy_file {
  	char *data;
--

1.7.1.rc1.21.gf3bd6

Quoted 6 lines
Quoted 5 lines

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

o.k. throwing in the reject pile..
thanks for looking..

Justin P. Mattock

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 6 lines · Justin P. Mattock
Quoted 5 lines · James Morris
Quoted 3 lines · Justin P. Mattock

Fix the space between "SE Linux", to match the other definitions of "SELinux", in the system.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

NAK, please look at how this is used.

ahh.. I thought this was printk ing things
into dmesg.. but it's not it's a strlen.

That string is part of the header of the binary policy file. You can't change it without breaking compatibility. It has always been that way in mainline Linux 2.6, and predates that in the SELinux code (circa 2002).

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 12 lines · Stephen Smalley
Quoted 11 lines · Justin P. Mattock
Quoted 9 lines · James Morris
Quoted 4 lines · Justin P. Mattock

Fix the space between "SE Linux", to match the other definitions of "SELinux", in the system.

NAK, please look at how this is used.

Quoted 8 lines
Quoted 2 lines

ahh.. I thought this was printk ing things
into dmesg.. but it's not it's a strlen.

That string is part of the header of the binary policy file. You can't change it without breaking compatibility. It has always been that way in mainline Linux 2.6, and predates that in the SELinux code (circa 2002).

I did see, where it's being called
but while looking at the code, I didn't
get what it was doing(to the most part)

then after really looking at strlen
it's(like what you had said)
the header of the binary file or
the string length

so to change this would breaks
lots of things!!("great just
what I need"..)

thanks for looking at this.

Justin P. Mattock

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.