Skip to contentSkip to conversation

newrole assertion

DISCUSSION Xavier Toth 2 participants 8 messages Jul 8, 2008 – Jul 10, 2008 2 messages not in the archive SELinux security module

lore
Share & tools
lore
#0 lore raw

Using MLS enforcing in a gnome-terminal with context user_u:user_r:user_t:s0-s15:c0.c1023 I run newrole and get these results

newrole -l s1-s1 -- -c "gnome-terminal --disable-factory" Password:
**
** ERROR:(terminal.c:1016):new_terminal_with_options: assertion
failed: (profile)

I think Joe straced this and has a little more info if he'd like to chime in.

--
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 · Xavier Toth

Using MLS enforcing in a gnome-terminal with context user_u:user_r:user_t:s0-s15:c0.c1023 I run newrole and get these results

Quoted 8 lines

newrole -l s1-s1 -- -c "gnome-terminal --disable-factory" Password:
**
** ERROR:(terminal.c:1016):new_terminal_with_options: assertion
failed: (profile)

I think Joe straced this and has a little more info if he'd like to chime in.

So, I assume that this does not happen if in permissive mode? What AVC denials occur? Run semodule -DB and retry if there are no AVCs by default.

What is the application trying to do at that point (look at the source code and/or ask on the gnome lists)? What are the possible failure conditions there? What external dependencies does it have?

strace output might help if you have it.

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.
author
#2 lore raw

Re: newrole assertion - should be gnome-terminal assertion

Quoted 20 lines · Stephen Smalley
Quoted 4 lines · Xavier Toth

Using MLS enforcing in a gnome-terminal with context user_u:user_r:user_t:s0-s15:c0.c1023 I run newrole and get these results

Quoted 9 lines

newrole -l s1-s1 -- -c "gnome-terminal --disable-factory" Password:
**
** ERROR:(terminal.c:1016):new_terminal_with_options: assertion
failed: (profile)

I think Joe straced this and has a little more info if he'd like to chime in.

So, I assume that this does not happen if in permissive mode? What AVC denials occur? Run semodule -DB and retry if there are no AVCs by default.

Quoted 7 lines

What is the application trying to do at that point (look at the source code and/or ask on the gnome lists)? What are the possible failure conditions there? What external dependencies does it have?

strace output might help if you have it.

Sorry to have bothered you. Looks like it has something to do with polyinstantiation of ~/.gnome or ~/.gnome2. We haven't seen this with previous versions even when polyinstantiating :(

--
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.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Re: newrole assertion - should be gnome-terminal assertion

Quoted 38 lines · Xavier Toth
Quoted 31 lines · Ted X Toth
Quoted 19 lines · Stephen Smalley
Quoted 12 lines · Xavier Toth

Using MLS enforcing in a gnome-terminal with context user_u:user_r:user_t:s0-s15:c0.c1023 I run newrole and get these results

newrole -l s1-s1 -- -c "gnome-terminal --disable-factory" Password:
**
** ERROR:(terminal.c:1016):new_terminal_with_options: assertion
failed: (profile)

Quoted 3 lines

I think Joe straced this and has a little more info if he'd like to chime in.

Quoted 10 lines

So, I assume that this does not happen if in permissive mode? What AVC denials occur? Run semodule -DB and retry if there are no AVCs by default.

What is the application trying to do at that point (look at the source code and/or ask on the gnome lists)? What are the possible failure conditions there? What external dependencies does it have? strace output might help if you have it.

Quoted 5 lines

Sorry to have bothered you. Looks like it has something to do with polyinstantiation of ~/.gnome or ~/.gnome2. We haven't seen this with previous versions even when polyinstantiating :(

Quoted 6 lines

Hmmm this was a bit of a rush to judgment :( It actually turned out that if I don't polyinstantiate /tmp then I can start gnome-terminal as shown in permissive but it still doesn't work in enforcing. I tried turning off dontaudit but I'm not seeing any AVC out of gnome-terminal. I've attached a strace maybe you'll see something that I don't.

Look for any avcs at all - they might be occurring during the polyinstantiation, or from dbus, or from the X server.

Also, run the strace while permissive and diff the two strace outputs to see how they differ (imperfect, there will be noise, but helpful nonetheless).

I see quite a few ENOENTs in there, e.g. on the .gnome2 files, not sure how many of those are expected/harmless.

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.
#5 lore raw

Re: newrole assertion - should be gnome-terminal assertion

Quoted 54 lines · Stephen Smalley
Quoted 38 lines · Xavier Toth
Quoted 31 lines · Ted X Toth
Quoted 19 lines · Stephen Smalley
Quoted 12 lines · Xavier Toth

Using MLS enforcing in a gnome-terminal with context user_u:user_r:user_t:s0-s15:c0.c1023 I run newrole and get these results

newrole -l s1-s1 -- -c "gnome-terminal --disable-factory" Password:
**
** ERROR:(terminal.c:1016):new_terminal_with_options: assertion
failed: (profile)

Quoted 3 lines

I think Joe straced this and has a little more info if he'd like to chime in.

Quoted 10 lines

So, I assume that this does not happen if in permissive mode? What AVC denials occur? Run semodule -DB and retry if there are no AVCs by default.

What is the application trying to do at that point (look at the source code and/or ask on the gnome lists)? What are the possible failure conditions there? What external dependencies does it have? strace output might help if you have it.

Quoted 5 lines

Sorry to have bothered you. Looks like it has something to do with polyinstantiation of ~/.gnome or ~/.gnome2. We haven't seen this with previous versions even when polyinstantiating :(

Quoted 6 lines

Hmmm this was a bit of a rush to judgment :( It actually turned out that if I don't polyinstantiate /tmp then I can start gnome-terminal as shown in permissive but it still doesn't work in enforcing. I tried turning off dontaudit but I'm not seeing any AVC out of gnome-terminal. I've attached a strace maybe you'll see something that I don't.

Look for any avcs at all - they might be occurring during the polyinstantiation, or from dbus, or from the X server.

Also, run the strace while permissive and diff the two strace outputs to see how they differ (imperfect, there will be noise, but helpful nonetheless).

Quoted 8 lines

I see quite a few ENOENTs in there, e.g. on the .gnome2 files, not sure how many of those are expected/harmless.

--
Stephen Smalley
National Security Agency

Any idea how to capture strace output in enforcing? I've tried using the -o option but strace can't write to tmp or the users home dir in enforcing.

--
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.

#6 lore raw

Re: newrole assertion - should be gnome-terminal assertion

Quoted 64 lines · Xavier Toth
Quoted 54 lines · Stephen Smalley
Quoted 38 lines · Xavier Toth
Quoted 31 lines · Ted X Toth
Quoted 19 lines · Stephen Smalley
Quoted 12 lines · Xavier Toth

Using MLS enforcing in a gnome-terminal with context user_u:user_r:user_t:s0-s15:c0.c1023 I run newrole and get these results

newrole -l s1-s1 -- -c "gnome-terminal --disable-factory" Password:
**
** ERROR:(terminal.c:1016):new_terminal_with_options: assertion
failed: (profile)

Quoted 3 lines

I think Joe straced this and has a little more info if he'd like to chime in.

Quoted 10 lines

So, I assume that this does not happen if in permissive mode? What AVC denials occur? Run semodule -DB and retry if there are no AVCs by default.

What is the application trying to do at that point (look at the source code and/or ask on the gnome lists)? What are the possible failure conditions there? What external dependencies does it have? strace output might help if you have it.

Quoted 5 lines

Sorry to have bothered you. Looks like it has something to do with polyinstantiation of ~/.gnome or ~/.gnome2. We haven't seen this with previous versions even when polyinstantiating :(

Quoted 6 lines

Hmmm this was a bit of a rush to judgment :( It actually turned out that if I don't polyinstantiate /tmp then I can start gnome-terminal as shown in permissive but it still doesn't work in enforcing. I tried turning off dontaudit but I'm not seeing any AVC out of gnome-terminal. I've attached a strace maybe you'll see something that I don't.

Look for any avcs at all - they might be occurring during the polyinstantiation, or from dbus, or from the X server.

Also, run the strace while permissive and diff the two strace outputs to see how they differ (imperfect, there will be noise, but helpful nonetheless).

Quoted 8 lines

I see quite a few ENOENTs in there, e.g. on the .gnome2 files, not sure how many of those are expected/harmless.

--
Stephen Smalley
National Security Agency

Quoted 3 lines

Any idea how to capture strace output in enforcing? I've tried using the -o option but strace can't write to tmp or the users home dir in enforcing.

Not sure I follow - why can't it write to its polyinstantiated /tmp directory?

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.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

Fwd: newrole assertion - should be gnome-terminal assertion

---------- Forwarded message ----------
From: Xavier Toth <[email protected]>
Date: Thu, Jul 10, 2008 at 10:06 AM
Subject: Re: newrole assertion - should be gnome-terminal assertion
To: Stephen Smalley <[email protected]>

Quoted 70 lines · Stephen Smalley
Quoted 64 lines · Xavier Toth
Quoted 54 lines · Stephen Smalley
Quoted 38 lines · Xavier Toth
Quoted 31 lines · Ted X Toth
Quoted 19 lines · Stephen Smalley
Quoted 12 lines · Xavier Toth

Using MLS enforcing in a gnome-terminal with context user_u:user_r:user_t:s0-s15:c0.c1023 I run newrole and get these results

newrole -l s1-s1 -- -c "gnome-terminal --disable-factory" Password:
**
** ERROR:(terminal.c:1016):new_terminal_with_options: assertion
failed: (profile)

Quoted 3 lines

I think Joe straced this and has a little more info if he'd like to chime in.

Quoted 10 lines

So, I assume that this does not happen if in permissive mode? What AVC denials occur? Run semodule -DB and retry if there are no AVCs by default.

What is the application trying to do at that point (look at the source code and/or ask on the gnome lists)? What are the possible failure conditions there? What external dependencies does it have? strace output might help if you have it.

Quoted 5 lines

Sorry to have bothered you. Looks like it has something to do with polyinstantiation of ~/.gnome or ~/.gnome2. We haven't seen this with previous versions even when polyinstantiating :(

Quoted 6 lines

Hmmm this was a bit of a rush to judgment :( It actually turned out that if I don't polyinstantiate /tmp then I can start gnome-terminal as shown in permissive but it still doesn't work in enforcing. I tried turning off dontaudit but I'm not seeing any AVC out of gnome-terminal. I've attached a strace maybe you'll see something that I don't.

Look for any avcs at all - they might be occurring during the polyinstantiation, or from dbus, or from the X server.

Also, run the strace while permissive and diff the two strace outputs to see how they differ (imperfect, there will be noise, but helpful nonetheless).

Quoted 8 lines

I see quite a few ENOENTs in there, e.g. on the .gnome2 files, not sure how many of those are expected/harmless.

--
Stephen Smalley
National Security Agency

Quoted 3 lines

Any idea how to capture strace output in enforcing? I've tried using the -o option but strace can't write to tmp or the users home dir in enforcing.

Quoted 8 lines

Not sure I follow - why can't it write to its polyinstantiated /tmp directory?

--
Stephen Smalley
National Security Agency

You're right that does work a long as you've got an instance directory at the right level ;) which I didn't previously. The assertion points to a problem of not having a 'profile' so I've looked through the strace output but don't see anything that is related to loading 'profiles'.

--
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.

#9 lore raw

Re: newrole assertion - should be gnome-terminal assertion

In reply to Stephen Smalley
Quoted 54 lines · Stephen Smalley
Quoted 38 lines · Xavier Toth
Quoted 31 lines · Ted X Toth
Quoted 19 lines · Stephen Smalley
Quoted 12 lines · Xavier Toth

Using MLS enforcing in a gnome-terminal with context user_u:user_r:user_t:s0-s15:c0.c1023 I run newrole and get these results

newrole -l s1-s1 -- -c "gnome-terminal --disable-factory" Password:
**
** ERROR:(terminal.c:1016):new_terminal_with_options: assertion
failed: (profile)

Quoted 3 lines

I think Joe straced this and has a little more info if he'd like to chime in.

Quoted 10 lines

So, I assume that this does not happen if in permissive mode? What AVC denials occur? Run semodule -DB and retry if there are no AVCs by default.

What is the application trying to do at that point (look at the source code and/or ask on the gnome lists)? What are the possible failure conditions there? What external dependencies does it have? strace output might help if you have it.

Quoted 5 lines

Sorry to have bothered you. Looks like it has something to do with polyinstantiation of ~/.gnome or ~/.gnome2. We haven't seen this with previous versions even when polyinstantiating :(

Quoted 6 lines

Hmmm this was a bit of a rush to judgment :( It actually turned out that if I don't polyinstantiate /tmp then I can start gnome-terminal as shown in permissive but it still doesn't work in enforcing. I tried turning off dontaudit but I'm not seeing any AVC out of gnome-terminal. I've attached a strace maybe you'll see something that I don't.

Look for any avcs at all - they might be occurring during the polyinstantiation, or from dbus, or from the X server.

Also, run the strace while permissive and diff the two strace outputs to see how they differ (imperfect, there will be noise, but helpful nonetheless).

Quoted 8 lines

I see quite a few ENOENTs in there, e.g. on the .gnome2 files, not sure how many of those are expected/harmless.

--
Stephen Smalley
National Security Agency

Comparing straces when gnome-ternimal fails to start there is a problem with it talking to dbus (~line 1062 of the trace I attached previously).

--
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.