Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-17-2013, 11:34 AM   #16
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 4,114
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
Quote:
Originally Posted by baf View Post
I once built netfilter kernel modules for KT 5.3.2 (attached). I had an idea to block outgoing connections by process id (-m owner --pid-owner), but it turned out that this option is not supported by modern kernels anymore.
Thanks.
They load into 5.3.3 (K5 Paperwhite) not just into 5.3.2 (K5 touch) and should load into any kernel with the same version string.
And perhaps earlier kernels using "force" but that is a bit risky.

Code:
core2quad netfilter $ modinfo ./ipt_LOG.ko
filename:       ./ipt_LOG.ko
description:    Xtables: IPv4 packet logging to syslog
author:         Netfilter Core Team <coreteam@netfilter.org>
license:        GPL
depends:        
vermagic:       2.6.31-rt11-lab126 mod_unload ARMv7
On Kpw-5.3.3:
Code:
[root@kindle root]# lsmod
Module                  Size  Used by
g_ether                27500  0 
arcotg_udc_yoshime     17472  1 g_ether
pkt_monitor             3532  0 
cyttsp                 25692  0 
fuse                   59316  2 
mxc_epdc_fb            42504  3 
eink_fb_waveform      557596  1 mxc_epdc_fb

[root@kindle root]# insmod ./ipt_REJECT.ko

[root@kindle root]# lsmod
Module                  Size  Used by
ipt_REJECT              2792  0 
g_ether                27500  0 
arcotg_udc_yoshime     17472  1 g_ether
pkt_monitor             3532  0 
cyttsp                 25692  0 
fuse                   59316  2 
mxc_epdc_fb            42504  3 
eink_fb_waveform      557596  1 mxc_epdc_fb

[root@kindle root]# cat /proc/version
Linux version 2.6.31-rt11-lab126 (jenkins-official@jbuild03) (collect2: ld returned 1 exit status) #1 Tue Jan 8 22:06:21 PST 2013
Thanks.
That will let me start testing BBB-1.1.0 rule-set (on the K5s) with a proper "REJECT" target and BBB-1.1.x rule-set (developer packet capture).

@baf : You didn't happen to build the ulogd daemon did you?
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan

Last edited by knc1; 02-17-2013 at 11:42 AM.
knc1 is offline   Reply With Quote
Old 02-17-2013, 11:36 AM   #17
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 5,136
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
[root@kindle root]# cat /proc/version
Quote:
Linux version 2.6.31-rt11-lab126 (jenkins-official@jbuild02) (collect2: ld returned 1 exit status) #1 Wed Dec 12 19:58:30 PST 2012
[root@kindle root]# what
Quote:
Kindle Touch!
__________________
Audiophile and electron bully.
My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK
Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him.
The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set
twobob is offline   Reply With Quote
 
Enthusiast
Old 02-17-2013, 11:43 AM   #18
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 4,114
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
Is jbuild01 on the K4?
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan
knc1 is offline   Reply With Quote
Old 02-17-2013, 12:42 PM   #19
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 5,136
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
"Not Sure". will happily test should my grubby mits ever own one
__________________
Audiophile and electron bully.
My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK
Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him.
The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set
twobob is offline   Reply With Quote
Old 02-17-2013, 04:33 PM   #20
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 251
Karma: 918864
Join Date: May 2012
Device: kt
Quote:
Originally Posted by knc1 View Post
@baf : You didn't happen to build the ulogd daemon did you?
You will find this package at the bottom of my xterm page. I have never used it before and now just played a bit. I included working config (with adjusted paths etc) in the package to start with.

Last edited by baf; 02-17-2013 at 04:38 PM.
baf is offline   Reply With Quote
Old 02-17-2013, 04:45 PM   #21
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 4,114
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
Quote:
Originally Posted by baf View Post
You will find this package at the bottom of my xterm page. I have never used it before and now just played a bit. I included working config (with adjusted paths etc) in the package to start with.
I grabbed a copy, thanks.

That is the new v-2 ULOGD -
Not sure if the old v-1 flavor wouldn't do the job of just copying packets without all the extra bells and whistles.

Will play with both to get a better idea.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan
knc1 is offline   Reply With Quote
Old 02-17-2013, 05:06 PM   #22
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 251
Karma: 918864
Join Date: May 2012
Device: kt
Quote:
Originally Posted by knc1 View Post
That is the new v-2 ULOGD -
Not sure if the old v-1 flavor wouldn't do the job of just copying packets without all the extra bells and whistles.
For me simple LOG target is enough
baf is offline   Reply With Quote
Old 02-17-2013, 06:41 PM   #23
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 4,114
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
Quote:
Originally Posted by baf View Post
For me simple LOG target is enough
I used to feed PSAD with ULOG target, back when I was on that project.

Now I want the entire packet to add specific rules for using parts of the Amazon network services while blocking others.

I.E: For the 'developer rule-set'.

For other uses, the LOG target is probably enough, will just have to do something about the place that syslog-ng is writing to (and where its configure file is at).

A neat challenge, what with the KUAL objective of never touching system image files.
Will probably end up with over-mounting that file or directory with something, maybe a tmpfs something. (then everything goes away on re-boot)
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan

Last edited by knc1; 02-17-2013 at 06:44 PM.
knc1 is offline   Reply With Quote
Old 02-24-2013, 02:50 PM   #24
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 250
Karma: 1078746
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW
Just in case there are some other users as unintelligent as I am.....

When I unpacked the bbb-1.0.0 zip it gave me a folder bbb-1.0.0 and I stupidly dragged that folder to the extensions folder (yes, I did read the instructions several times...). This give you the following screenshot.

Solution is to only drag the bbb folder, not the bbb-1.0.0 folder to the extensions folder. Just in case this comes up with anyone else.

Smart people can ignore everything I just wrote.
Attached Thumbnails
Click image for larger version

Name:	error.png
Views:	22
Size:	10.2 KB
ID:	101887  
__________________
Interested in DropBox? Use my referral link and we both get an extra 500 mb.
slantybard is offline   Reply With Quote
Old 02-24-2013, 03:05 PM   #25
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 4,114
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
Quote:
Originally Posted by slantybard View Post
Just in case there are some other users as unintelligent as I am.....

When I unpacked the bbb-1.0.0 zip it gave me a folder bbb-1.0.0 and I stupidly dragged that folder to the extensions folder (yes, I did read the instructions several times...). This give you the following screenshot.

Solution is to only drag the bbb folder, not the bbb-1.0.0 folder to the extensions folder. Just in case this comes up with anyone else.

Smart people can ignore everything I just wrote.
That is the common practice in the "real world" (outside of the hobby world) to always put the archive contents into a directory of the same name.

Next time - bbb-1.0.1 (or whatever) will unpack into its own directory name - making it possible to keep them separate on the system.

The practice also protects against: "tar-bombs" (google that if you have to).
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan
knc1 is offline   Reply With Quote
Old 02-24-2013, 03:13 PM   #26
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 5,136
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
Hint... it's not this

Attached Thumbnails
Click image for larger version

Name:	Selection_229.png
Views:	64
Size:	267.5 KB
ID:	101897  
__________________
Audiophile and electron bully.
My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK
Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him.
The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set
twobob is offline   Reply With Quote
Old 02-24-2013, 04:20 PM   #27
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,137
Karma: 23467050
Join Date: Dec 2011
Device: Kindle Paperwhite
Quote:
Originally Posted by knc1 View Post
That is the common practice in the "real world" (outside of the hobby world) to always put the archive contents into a directory of the same name.

Next time - bbb-1.0.1 (or whatever) will unpack into its own directory name - making it possible to keep them separate on the system.

The practice also protects against: "tar-bombs" (google that if you have to).
It does not unless you explicitly say to extract it into its own folder. Both your zip and tar.gz extract not only one, but 2 directories: bbb and refs. See here for the tgz, the zip has same contents.
Code:
$ tar tf bbb-1.0.0.tar.gz
bbb/
bbb/menu.json
bbb/frags/
bbb/frags/fw-base.txt
bbb/bin/
bbb/bin/load-bbb.sh
bbb/bin/del-filter.sh
bbb/bin/report-cnts.sh
bbb/bin/load-factory.sh
bbb/config.xml
refs/
refs/LICENSE.txt
refs/amazon-net.txt
DuckieTigger is offline   Reply With Quote
Old 02-24-2013, 04:46 PM   #28
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 4,114
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
Who among you can read?

Quote, from top post of the thread:
Quote:
There will be two directories created when you un-pack the archive: bbb and: refs.
The 'refs' directory does not have to be on the Kindle - keep it wherever you keep your reference materials.
Does that sentence need to be clarified?
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan
knc1 is offline   Reply With Quote
Old 02-24-2013, 04:59 PM   #29
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,137
Karma: 23467050
Join Date: Dec 2011
Device: Kindle Paperwhite
Quote:
Originally Posted by knc1 View Post
Quote, from top post of the thread:

Does that sentence need to be clarified?
No it doesn't need to be clarified.
Quote:
Next time - bbb-1.0.1 (or whatever) will unpack into its own directory name
That one does not make sense. Why change all of the sudden and package the next version different from the first? If you so strongly believe it should have been done to start with, then maybe you should have.

There will be user-errors no matter how you package it.
DuckieTigger is offline   Reply With Quote
Old 02-24-2013, 05:17 PM   #30
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 4,114
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
Quote:
Originally Posted by DuckieTigger View Post
There will be user-errors no matter how you package it.
I was only replying to the Poster's Comment:
Quote:
When I unpacked the bbb-1.0.0 zip it gave me a folder bbb-1.0.0 and I stupidly dragged that folder to the extensions folder (yes, I did read the instructions several times...). This give you the following screenshot.
If they want to do it "Their way" - then the next time it will come out different for them than it did this first time.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan
knc1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kindle] Unified Application Launcher. KUAL twobob Kindle Developer's Corner 860 Today 05:38 PM
HowTo [KUAL] Extension Support and Versioning twobob Kindle Developer's Corner 40 05-10-2013 08:01 PM
[KUAL] Button Def. Packages knc1 Kindle Developer's Corner 13 05-04-2013 03:43 PM
Tools KUAL DateTime Button knc1 Kindle Developer's Corner 13 02-17-2013 03:57 PM
HowTo HELP ME - with data for Big Brother Blocker (BBB) knc1 Kindle Developer's Corner 12 02-11-2013 08:58 PM


All times are GMT -4. The time now is 10:53 PM.


MobileRead.com is a privately owned, operated and funded community.