A few more things:
1. Decoding these are annoying see attached tool
2. The output is in hex, why is their no leading 0x on them? Everything
else in the output is base 10.
On Wed, Sep 9, 2015 at 6:26 PM, William Roberts <[email protected]>
wrote:
> I think they would want this.. ill just lock it down.
>
> On Wed, Sep 9, 2015 at 4:51 PM, Jeffrey Vander Stoep <[email protected]>
> wrote:
>
>> uapi/linux/fs.h:#define FITRIM _IOWR('X', 121, struct fstrim_range) /*
>> Trim */
>>
>> You could add the "notrim" option to the fstab entry.
>>
>>
>> On Wed, Sep 9, 2015 at 2:38 PM, Roberts, William C <
>> [email protected]> wrote:
>> > Does anyone know what this ioctl is on class dir?
>> >
>> >
>> >
>> > [ 258.646056] type=1400 audit(1432616313.483:91): avc: denied { ioctl
>> } for
>> > pid=4814 comm="xxx" path="/factory" dev="mmcblk0p12" ino=2 ioctlcmd=5879
>> > scontext=u:r:xxxx:s0 tcontext=u:object_r:factory_file:s0 tclass=dir
>> > permissive=1
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > Seandroid-list mailing list
>> > [email protected]
>> > To unsubscribe, send email to [email protected].
>> > To get help, send an email containing "help" to
>> > [email protected].
>>
>>
>> _______________________________________________
>> Seandroid-list mailing list
>> [email protected]
>> To unsubscribe, send email to [email protected].
>> To get help, send an email containing "help" to
>> [email protected].
>>
>
>
>
> --
> Respectfully,
>
> William C Roberts
>
>
--
Respectfully,
William C Roberts
/*
* This configuration (sepolicy) is public domain, i.e. not copyrighted.
*
* Warranty Exclusion
* ------------------
* You agree that this software is a
* non-commercially developed program that may contain "bugs" (as that
* term is used in the industry) and that it may not function as intended.
* The software is licensed "as is". NSA makes no, and hereby expressly
* disclaims all, warranties, express, implied, statutory, or otherwise
* with respect to the software, including noninfringement and the implied
* warranties of merchantability and fitness for a particular purpose.
*
* Limitation of Liability
* -----------------------
* In no event will NSA be liable for any damages, including loss of data,
* lost profits, cost of cover, or other special, incidental,
* consequential, direct or indirect damages arising from the software or
* the use thereof, however caused and on any theory of liability. This
* limitation will apply even if NSA has been advised of the possibility
* of such damage. You acknowledge that this is a reasonable allocation of
* risk.
*/
/*
* sample:
* $ gcc -o ioctl ioctl.c
* $ ./ioctl 5879
* type: "X"
* nr: "121"
*/
#include <stdlib.h>
#include <stdio.h>
#include <asm-generic/ioctl.h>
void usage(char *self) {
fprintf(stderr, "%s: <ioctlcmd>\n"
"\t Where ioctlcmd is the ioctlcmd reported from SELinux audit messages\n"
"Output:\n"
"\tThe type field, in character output. By convention, kernel ioctl type fields are a \"random\" character.\n"
"\tThe nr field, in base 10 output. By convention, kernel ioctl nr fields are base10.\n"
"Returns:\n"
"\t0 on success\n", self);
exit(EXIT_FAILURE);
}
int main(int argc, char *argv[]) {
int nr;
int type;
int ionum;
char *endptr;
if (argc != 2) {
usage(argv[0]);
}
ionum = strtol(argv[1], &endptr, 16);
if (*endptr != '\0') {
fprintf(stderr, "Could not convert input text: %s", argv[1]);
usage(argv[1]);
}
type = _IOC_TYPE(ionum);
nr = _IOC_NR(ionum);
printf("type: \"%c\"\n", type);
printf("nr: \"%d\"\n", nr);
exit(EXIT_SUCCESS);
}
_______________________________________________
Seandroid-list mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to
[email protected].