All of lore.kernel.org
 help / color / mirror / Atom feed
* SEAndroid make_ext4fs fails with new changes
@ 2012-03-07 16:24 Subramani Venkatesh
  2012-03-07 16:35 ` Stephen Smalley
  0 siblings, 1 reply; 5+ messages in thread
From: Subramani Venkatesh @ 2012-03-07 16:24 UTC (permalink / raw)
  To: selinux

Hi,
I synced SE Android code this morning, facing some issues with
make_ext4fs, here is the log

make_ext4fs -s -S out/target/product/maguro/root/file_contexts -l
14539537408 -a data out/target/product/maguro/userdata.img
out/target/product/maguro/data
Creating filesystem with parameters:
    Size: 14539534336
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8144
    Inode size: 256
    Journal blocks: 32768
    Label:
    Blocks: 3549691
    Block groups: 109
    Reserved block group size: 871
error: make_ext4fs_internal: cannot lookup security context for /data

Is anyone else facing the same issue?

Regards,
Subbu

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SEAndroid make_ext4fs fails with new changes
  2012-03-07 16:24 SEAndroid make_ext4fs fails with new changes Subramani Venkatesh
@ 2012-03-07 16:35 ` Stephen Smalley
  2012-03-07 16:55   ` Subramani Venkatesh
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Smalley @ 2012-03-07 16:35 UTC (permalink / raw)
  To: Subramani Venkatesh; +Cc: selinux

On Wed, 2012-03-07 at 11:24 -0500, Subramani Venkatesh wrote:
> Hi,
> I synced SE Android code this morning, facing some issues with
> make_ext4fs, here is the log
> 
> make_ext4fs -s -S out/target/product/maguro/root/file_contexts -l
> 14539537408 -a data out/target/product/maguro/userdata.img
> out/target/product/maguro/data
> Creating filesystem with parameters:
>     Size: 14539534336
>     Block size: 4096
>     Blocks per group: 32768
>     Inodes per group: 8144
>     Inode size: 256
>     Journal blocks: 32768
>     Label:
>     Blocks: 3549691
>     Block groups: 109
>     Reserved block group size: 871
> error: make_ext4fs_internal: cannot lookup security context for /data
> 
> Is anyone else facing the same issue?

What does your out/target/product/maguro/root/file_contexts contain?

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SEAndroid make_ext4fs fails with new changes
  2012-03-07 16:35 ` Stephen Smalley
@ 2012-03-07 16:55   ` Subramani Venkatesh
  2012-03-07 18:12     ` Stephen Smalley
  0 siblings, 1 reply; 5+ messages in thread
From: Subramani Venkatesh @ 2012-03-07 16:55 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: selinux

Hi Stephen,
I created 2 files sepolicy.fc and sepolicy.te in
device/samsung/<TARGET_BOARD>/, there was one error in sepolicy.fc
file, I fixed it, but then when I rebuild the changes are not taking
affect, it shows error file. Probably I have to delete
obj/ETC/sepolicy_intermediates and rebuild it.


Regards,
Subbu

On Wed, Mar 7, 2012 at 11:35 AM, Stephen Smalley <sds@tycho.nsa.gov> wrote:
> On Wed, 2012-03-07 at 11:24 -0500, Subramani Venkatesh wrote:
>> Hi,
>> I synced SE Android code this morning, facing some issues with
>> make_ext4fs, here is the log
>>
>> make_ext4fs -s -S out/target/product/maguro/root/file_contexts -l
>> 14539537408 -a data out/target/product/maguro/userdata.img
>> out/target/product/maguro/data
>> Creating filesystem with parameters:
>>     Size: 14539534336
>>     Block size: 4096
>>     Blocks per group: 32768
>>     Inodes per group: 8144
>>     Inode size: 256
>>     Journal blocks: 32768
>>     Label:
>>     Blocks: 3549691
>>     Block groups: 109
>>     Reserved block group size: 871
>> error: make_ext4fs_internal: cannot lookup security context for /data
>>
>> Is anyone else facing the same issue?
>
> What does your out/target/product/maguro/root/file_contexts contain?
>
> --
> 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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SEAndroid make_ext4fs fails with new changes
  2012-03-07 16:55   ` Subramani Venkatesh
@ 2012-03-07 18:12     ` Stephen Smalley
  2012-03-07 18:23       ` Subramani Venkatesh
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Smalley @ 2012-03-07 18:12 UTC (permalink / raw)
  To: Subramani Venkatesh; +Cc: selinux

On Wed, 2012-03-07 at 11:55 -0500, Subramani Venkatesh wrote:
> Hi Stephen,
> I created 2 files sepolicy.fc and sepolicy.te in
> device/samsung/<TARGET_BOARD>/, there was one error in sepolicy.fc
> file, I fixed it, but then when I rebuild the changes are not taking
> affect, it shows error file. Probably I have to delete
> obj/ETC/sepolicy_intermediates and rebuild it.

Hmm...I couldn't seem to reproduce.  What exactly did you have in your
sepolicy.fc file originally, and how did you "fix" it?  Did the fixed
version have a newer timestamp than the broken one?

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SEAndroid make_ext4fs fails with new changes
  2012-03-07 18:12     ` Stephen Smalley
@ 2012-03-07 18:23       ` Subramani Venkatesh
  0 siblings, 0 replies; 5+ messages in thread
From: Subramani Venkatesh @ 2012-03-07 18:23 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: selinux

I had something like "+/dev/ttyFIQ[0-9]*
u:object_r:tty_device:s0", until I erase obj files, It did not work
for me.
I myself not able to reproduce it now.

Regards,
Subbu
> On Wed, 2012-03-07 at 11:55 -0500, Subramani Venkatesh wrote:
>> Hi Stephen,
>> I created 2 files sepolicy.fc and sepolicy.te in
>> device/samsung/<TARGET_BOARD>/, there was one error in sepolicy.fc
>> file, I fixed it, but then when I rebuild the changes are not taking
>> affect, it shows error file. Probably I have to delete
>> obj/ETC/sepolicy_intermediates and rebuild it.
>
> Hmm...I couldn't seem to reproduce.  What exactly did you have in your
> sepolicy.fc file originally, and how did you "fix" it?  Did the fixed
> version have a newer timestamp than the broken one?
>
> --
> 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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-07 18:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07 16:24 SEAndroid make_ext4fs fails with new changes Subramani Venkatesh
2012-03-07 16:35 ` Stephen Smalley
2012-03-07 16:55   ` Subramani Venkatesh
2012-03-07 18:12     ` Stephen Smalley
2012-03-07 18:23       ` Subramani Venkatesh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.