[Touch-packages] [Bug 881137] Re: UFW does not clean iptables setting from /etc/ufw/before.rules

2020-09-01 Thread CzBiX
Does it possible to add predefined nat chains? Like what the openwrt
does.

UFW can insert `ufw_prerouting_rule`, `ufw_postrouting_rule` on start, and 
remove these on stop.
User can insert their custom rules in the ufw chains, without worry about the 
flush/duplicate issues.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ufw in Ubuntu.
https://bugs.launchpad.net/bugs/881137

Title:
  UFW does not clean iptables setting from /etc/ufw/before.rules

Status in ufw package in Ubuntu:
  Won't Fix

Bug description:
  Adding some additional settings to /etc/ufw/before.rules is not
  deleted when ufw is stopped.

  I added these lines at top of file /etc/ufw/before.rules

  *nat
  :POSTROUTING ACCEPT [0:0]
  -A POSTROUTING -o eth0 -j MASQUERADE
  COMMIT

  Then I reloaded ufw firewall with command: ufw reload. Output from
  iptables-save

  $ iptables-save -t nat
  *nat
  :PREROUTING ACCEPT [4:478]
  :INPUT ACCEPT [4:478]
  :OUTPUT ACCEPT [0:0]
  :POSTROUTING ACCEPT [0:0]
  -A POSTROUTING -o eth0 -j MASQUERADE 
  COMMIT

  Then I reloaded ufw firewall again:

  $ iptables-save -t nat
  *nat
  :PREROUTING ACCEPT [4:478]
  :INPUT ACCEPT [4:478]
  :OUTPUT ACCEPT [0:0]
  :POSTROUTING ACCEPT [0:0]
  -A POSTROUTING -o eth0 -j MASQUERADE 
  -A POSTROUTING -o eth0 -j MASQUERADE 
  COMMIT

  And ufw reload again

  $ iptables-save -t nat
  *nat
  :PREROUTING ACCEPT [4:478]
  :INPUT ACCEPT [4:478]
  :OUTPUT ACCEPT [0:0]
  :POSTROUTING ACCEPT [0:0]
  -A POSTROUTING -o eth0 -j MASQUERADE 
  -A POSTROUTING -o eth0 -j MASQUERADE 
  -A POSTROUTING -o eth0 -j MASQUERADE
  COMMIT

  And again and postrouting is never deleted when ufw is stopped and
  added again when stared. Same happen if I stop ufw firewall with: $
  stop ufw. nat lines are not cleaned.

  UFW should remove all iptables settings specified in config files
  after ufw is stopped! This can be dangerous if apt-get is updating
  some ufw files and scripts needs to reload ufw (some lines will be
  more times).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/881137/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1638245] Re: Files in the root of a folder on another partition symlinked to user's home cannot be moved to trash because of a patch in this package

2016-11-11 Thread CzBiX
Steps:
1. Install system and partition disk into root and data partitions
2. create ~/Data folder, and mount data partition on it
3. create symlinks for ~/whatever/ to ~/Data/something/
4. delete files directly inside ~/whatever/

What happen:
Then Nautilus says: "File can't be put in the trash. Do you want to delete it 
immediately?".

What should happen:
The files moved into Trash.

What I think:
The issue here is glib use parent dir(on another partition) to find Trash 
location, and move files from partition A(~/Data/something/xxx) to partition 
B(~/.local/share/Trash) failed by crossed device.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1638245

Title:
  Files in the root of a folder on another partition symlinked to user's
  home cannot be moved to trash because of a patch in this package

Status in glib2.0 package in Ubuntu:
  Confirmed

Bug description:
  I'm on Ubuntu 16.10 64-bit with libglib2.0-0 version 2.50.0-1.

  I've reported this bug (or marked as "it affects me") in a couple of
  other places before I've finally discovered that this is the package
  that's causing this problem, which unfortunately has been around for a
  couple of years now.

  This bug has been reported upstream as well, but it's just taking very
  very long to arrive at a decision and take action it seems.

  Apparently one of the patches
  (https://sources.debian.net/patches/glib2.0/2.50.1-1/0001-Fix-
  trashing-on-overlayfs.patch/) which is here
  
(https://launchpad.net/ubuntu/+archive/primary/+files/glib2.0_2.50.0-1.debian.tar.xz)
  to the original package which is here
  
(https://launchpad.net/ubuntu/+archive/primary/+files/glib2.0_2.50.0.orig.tar.xz)
  is the root cause of this annoying problem.

  As I prefer keeping one patition for the root filesystem (/), one
  partition for user settings (/home) and one partition for user data
  (Documents, Downloads, Drive, Music, Pictures, Public, Videos) which
  are simply symlinked to my home folder for ease of use, I cannot move
  any file to the trash in the root of these folders when I access them
  from my home folder or nautilus sidebar.

  This problem doesn't affect folders at all, nor any other files in
  subfolders, etc.

  So I was wondering if Ubuntu devs can leave out that particular patch
  when building this package for Ubuntu - if it doesn't cause more harm,
  which I doubt.

  Otherwise, I would appreciate if I could learn how to do it myself:
  how can I (as an end-user) compile the contents of
  "glib2.0_2.50.0.orig.tar.xz" with all the patches, etc. in
  "glib2.0_2.50.0-1.debian.tar.xz" except "0001-Fix-trashing-on-
  overlayfs.patch"?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1638245/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1495781] Re: Can't move to trash in data partition

2015-12-19 Thread CzBiX
*** This bug is a duplicate of bug 1449112 ***
https://bugs.launchpad.net/bugs/1449112

@Rik Shaw, do you meaning the logic of patch?

I was dis-asm the file of glib, find the position of 'if condition' on line 44 
in 
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/glib2.0/vivid-proposed/revision/227#debian/patches/0001-Fix-trashing-on-overlayfs.patch
change the machine instruction to jump(0xeb), then this if block will be 
skipped.

It's just a simple hack to fix it. Compile source code without that
patch is correct and more safer way.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1495781

Title:
  Can't move to trash in data partition

Status in glib2.0 package in Ubuntu:
  Confirmed

Bug description:
  I have a clean install of Ubuntu 15.04.

  I partitioned my disk into root and data partitions.
  I then created ~/Data folder, and mount data partition on it.
  I then created symlinks for ~/Downloads, ~/Music, etc... to ~/Data/Downloads, 
~/Data/Music, etc...

  Whenever I delete files directly inside ~/ they seem to go to the
  Trash (in ~/.local/share/Trash), but when I try to delete files in
  other folders that are linked to ~/Data (for example ~/Downloads, or
  ~/Data/Downloads) Nautilus says: "File can't be put in the trash. Do
  you want to delete it immediately?".

  I compile glib without patch at
  https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25,
  then it works well.

  report from https://bugs.launchpad.net/nautilus/+bug/1406376

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1495781/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1495781] Re: Can't move to trash in data partition

2015-10-22 Thread CzBiX
I just made a binary patch to fix this, please save as script and run:

https://gist.github.com/CzBiX/e64256b23687bb13da02

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1495781

Title:
  Can't move to trash in data partition

Status in glib2.0 package in Ubuntu:
  Confirmed

Bug description:
  I have a clean install of Ubuntu 15.04.

  I partitioned my disk into root and data partitions.
  I then created ~/Data folder, and mount data partition on it.
  I then created symlinks for ~/Downloads, ~/Music, etc... to ~/Data/Downloads, 
~/Data/Music, etc...

  Whenever I delete files directly inside ~/ they seem to go to the
  Trash (in ~/.local/share/Trash), but when I try to delete files in
  other folders that are linked to ~/Data (for example ~/Downloads, or
  ~/Data/Downloads) Nautilus says: "File can't be put in the trash. Do
  you want to delete it immediately?".

  I compile glib without patch at
  https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25,
  then it works well.

  report from https://bugs.launchpad.net/nautilus/+bug/1406376

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1495781/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1495781] Re: Can't move to trash in data partition

2015-09-14 Thread CzBiX
** Description changed:

  I have a clean install of Ubuntu 15.04.
  
- I partitioned my disk into / (20GB) and /data (230GB) partitions.
- I then created /data/home/ubuntu, moved my /home there, and bind mounted 
/home to /data/home/ubuntu.
- I then created symlinks for ~/Downloads, ~/Music, etc... to /data/Downloads, 
/data/Music, etc...
+ I partitioned my disk into root and data partitions.
+ I then created ~/Data folder, and mount data partition on it.
+ I then created symlinks for ~/Downloads, ~/Music, etc... to ~/Data/Downloads, 
~/Data/Music, etc...
  
  Whenever I delete files directly inside ~/ they seem to go to the Trash
  (in ~/.local/share/Trash), but when I try to delete files in other
- folders that are linked to /data (for example ~/Downloads, or
- /data/Downloads) Nautilus says: "File can't be put in the trash. Do you
+ folders that are linked to ~/Data (for example ~/Downloads, or
+ ~/Data/Downloads) Nautilus says: "File can't be put in the trash. Do you
  want to delete it immediately?".
  
  I compile the code without patch at
  https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25,
  then it works well.
  
  report from https://bugs.launchpad.net/nautilus/+bug/1406376

** Description changed:

  I have a clean install of Ubuntu 15.04.
  
  I partitioned my disk into root and data partitions.
  I then created ~/Data folder, and mount data partition on it.
  I then created symlinks for ~/Downloads, ~/Music, etc... to ~/Data/Downloads, 
~/Data/Music, etc...
  
  Whenever I delete files directly inside ~/ they seem to go to the Trash
  (in ~/.local/share/Trash), but when I try to delete files in other
  folders that are linked to ~/Data (for example ~/Downloads, or
  ~/Data/Downloads) Nautilus says: "File can't be put in the trash. Do you
  want to delete it immediately?".
  
- I compile the code without patch at
+ I compile glib without patch at
  https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25,
  then it works well.
  
  report from https://bugs.launchpad.net/nautilus/+bug/1406376

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1495781

Title:
  Can't move to trash in data partition

Status in glib2.0 package in Ubuntu:
  Confirmed

Bug description:
  I have a clean install of Ubuntu 15.04.

  I partitioned my disk into root and data partitions.
  I then created ~/Data folder, and mount data partition on it.
  I then created symlinks for ~/Downloads, ~/Music, etc... to ~/Data/Downloads, 
~/Data/Music, etc...

  Whenever I delete files directly inside ~/ they seem to go to the
  Trash (in ~/.local/share/Trash), but when I try to delete files in
  other folders that are linked to ~/Data (for example ~/Downloads, or
  ~/Data/Downloads) Nautilus says: "File can't be put in the trash. Do
  you want to delete it immediately?".

  I compile glib without patch at
  https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25,
  then it works well.

  report from https://bugs.launchpad.net/nautilus/+bug/1406376

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1495781/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1495781] Re: Can't move to trash in data partition

2015-09-14 Thread CzBiX
** Package changed: ubuntu => glib2.0 (Ubuntu)

** Description changed:

- I have a clean install of Ubuntu 14.10.
+ I have a clean install of Ubuntu 15.04.
  
  I partitioned my disk into / (20GB) and /data (230GB) partitions.
  I then created /data/home/ubuntu, moved my /home there, and bind mounted 
/home to /data/home/ubuntu.
  I then created symlinks for ~/Downloads, ~/Music, etc... to /data/Downloads, 
/data/Music, etc...
  
  Whenever I delete files directly inside ~/ they seem to go to the Trash
  (in ~/.local/share/Trash), but when I try to delete files in other
  folders that are linked to /data (for example ~/Downloads, or
  /data/Downloads) Nautilus says: "File can't be put in the trash. Do you
  want to delete it immediately?".
  
  I compile the code without patch at
  https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25,
  then it works well.

** Description changed:

  I have a clean install of Ubuntu 15.04.
  
  I partitioned my disk into / (20GB) and /data (230GB) partitions.
  I then created /data/home/ubuntu, moved my /home there, and bind mounted 
/home to /data/home/ubuntu.
  I then created symlinks for ~/Downloads, ~/Music, etc... to /data/Downloads, 
/data/Music, etc...
  
  Whenever I delete files directly inside ~/ they seem to go to the Trash
  (in ~/.local/share/Trash), but when I try to delete files in other
  folders that are linked to /data (for example ~/Downloads, or
  /data/Downloads) Nautilus says: "File can't be put in the trash. Do you
  want to delete it immediately?".
  
  I compile the code without patch at
  https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25,
  then it works well.
+ 
+ report from https://bugs.launchpad.net/nautilus/+bug/1406376

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1495781

Title:
  Can't move to trash in data partition

Status in glib2.0 package in Ubuntu:
  Confirmed

Bug description:
  I have a clean install of Ubuntu 15.04.

  I partitioned my disk into / (20GB) and /data (230GB) partitions.
  I then created /data/home/ubuntu, moved my /home there, and bind mounted 
/home to /data/home/ubuntu.
  I then created symlinks for ~/Downloads, ~/Music, etc... to /data/Downloads, 
/data/Music, etc...

  Whenever I delete files directly inside ~/ they seem to go to the
  Trash (in ~/.local/share/Trash), but when I try to delete files in
  other folders that are linked to /data (for example ~/Downloads, or
  /data/Downloads) Nautilus says: "File can't be put in the trash. Do
  you want to delete it immediately?".

  I compile the code without patch at
  https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25,
  then it works well.

  report from https://bugs.launchpad.net/nautilus/+bug/1406376

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1495781/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp