Re: [agl-dev-community] [HELP] Port Qt Desktop Widget to run on AGL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thanks for your help.

We have encountered a new problem:

Our Qt app reads and parses a log file in /tmp, here is the code:

QFile inputFile("/tmp/disk1.txt");
if (inputFile.open(QIODevice::ReadOnly))
{
    // do work
 } else {
    // error reading file
}

It seems that the Qt app (which is modified from taskmanager app) do not have permission to read files:

Dec 17 07:53:23 qemux86-64 audit[682]: AVC lsm=SMACK fn=smack_inode_permission action="" subject="User::App::taskmanager" object="System" requested=r pid=682 comm="taskmanager" name="disk1.txt" dev="tmpfs" ino=24766
Dec 17 07:53:23 qemux86-64 audit[682]: SYSCALL arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=55c8ffabfc28 a2=80000 a3=0 items=0 ppid=681 pid=682 auid=4294967295 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 tty=(none) ses=4294967295 comm="taskmanager" exe="/var/local/lib/afm/applications/taskmanager/0.1/bin/taskmanager" subj=User::App::taskmanager key=(null)

Anybody knows how can I make this work? 
 
Thanks.

Best Regards
Guowei


_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7909) | Reply To Group | Reply To Sender | Mute This Topic | New Topic

Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux