Hi,
The policy is defined as:
{
"policy_groups": [],
"policy_version": 1.1,
"template": "unconfined"
}
and run my app directly, it shows the IMEI number. Then
root@ubuntu-phablet:/var# grep DEN /var/log/syslog
root@ubuntu-phablet:/var#
Nothing is shown after checking the syslog. Then,
root@ubuntu-phablet:/var# sudo sysctl -w kernel.printk_ratelimit=0
kernel.printk_ratelimit = 0
root@ubuntu-phablet:/var# grep DEN /var/log/syslog
root@ubuntu-phablet:/var# grep DEN /var/log/syslog
root@ubuntu-phablet:/var# grep DEN /var/log/syslog
root@ubuntu-phablet:/var# sudo sysctl -w kernel.printk_ratelimit=0
kernel.printk_ratelimit = 0
root@ubuntu-phablet:/var# sudo sysctl -w kernel.printk_ratelimit=0
kernel.printk_ratelimit = 0
root@ubuntu-phablet:/var# grep DEN /var/log/syslog
root@ubuntu-phablet:/var#
Nothing is shown again. If I change the policy to the normal one, it does
not show the IMEI number at all. Is it because I did not define the correct
policy group?
Thanks & best regards,
XiaoGuo
On Mon, Jul 7, 2014 at 11:45 PM, Jamie Strandboge <[email protected]> wrote:
> Kernel rate limiting may be in effect. Can you perform on the system
> exhibiting the problem:
> sudo sysctl -w kernel.printk_ratelimit=0
>
> Then try to run the app under confinement? Please post the output of
> 'grep DEN /var/log/syslog' after.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1338420
>
> Title:
> Cannot get the IMEI number
>
> Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
> Incomplete
>
> Bug description:
> I have a simple code like:
>
> DeviceInfo {
> id: deviceInfos
> }
>
>
> ListItem.SingleValue {
> objectName: "imeiItem"
> property string imeiNumber
> imeiNumber: deviceInfos.imei(0)
> text: "IMEI"
> value: imeiNumber
> visible: true
> }
>
>
> If I set the "Security Profile" to the following:
>
> {
> "policy_groups": [],
> "policy_version": 1.1,
> "template": "unconfined"
> }
>
> Then I can get the IMEI number. However, if I set it to:
>
> {
> "policy_groups": [
> "networking",
> "connectivity"
> ],
> "policy_version": 1.1
> }
>
> I could not get the IMEI number. According to
> http://developer.ubuntu.com/publish/apps/security-policy-for-click-
> packages/
>
> connectivity: Can access coarse network connectivity information
> QML: qtdeclarative5-systeminfo-plugin
> import QtSystemInfo <version>
> Other APIs: Qt5 QHostAddress and QNetworkInterface
>
> "connectivity" has been added, however, it does not retrieve any of
> the useful information. I have checked the "/var/log/syslog", there is
> no violation as well.
>
> Best regards,
> XiaoGuo
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1338420/+subscriptions
>
--
XiaoGuo, Liu (刘晓国)
Mobile: +86-13911181302
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1338420
Title:
Cannot get the IMEI number
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1338420/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs