[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2015-04-01 Thread Tommy Trussell
I am seeing this in Evince 3.10.3 after upgrading to Ubuntu 14.04. A
Google search first sent me to Bug #1214874, which was marked as a
duplicate of Bug #1096837 -- an AppArmor issue.  THAT bug says it was
fixed last August in evince version 3.10.3-0ubuntu15, but unfortunately
that's a Utopic package, and Trusty has only been updated from
3.10.3-0ubuntu10 to 3.10.3-0ubuntu10.2 .

I gather this particular fix is not being backported to Ubuntu 14.04 LTS
Trusty? Anyone willing to sponsor a SRU to get this fix into Trusty?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2012-12-03 Thread Sebastien Bacher
yeah, I don't know, we don't patch evince's code so I'm not sure what is
at play there... note that doing a cp from the command line ends up
with the same permissions that the evince copy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2012-12-03 Thread Joshua Lock
Hmm, interesting. It's expected that cp would result in the same
permissions as the tmp file. It's the G_FILE_COPY_TARGET_DEFAULT_PERMS
flag which should set the permissions to the defaults for the
destination directory.

I was wondering if the issue is in GLib but the test program mimics the
GLib paths without replicating the bug.

I'm kind of stumped as to where to look next...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2012-12-01 Thread Bug Watch Updater
** Changed in: evince
   Status: New = Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Sebastien Bacher
** Changed in: evince (Ubuntu)
   Status: New = Triaged

** Changed in: evince (Ubuntu)
   Importance: Undecided = Low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Bug Watch Updater
** Changed in: evince
   Status: Unknown = New

** Changed in: evince
   Importance: Unknown = Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Joshua Lock
I don't think that this bug is in Evince itself. I've been taking a look
at the code and found that in ev_xfer_uri_simple() libdocument/ev-file-
helpers.c:419 the call to g_file_copy() passes
G_FILE_COPY_TARGET_DEFAULT_PERMS

http://bazaar.launchpad.net/~ubuntu-
branches/ubuntu/quantal/evince/quantal/view/head:/libdocument/ev-file-
helpers.c#L419

which according to the glib docs Leaves target file with default perms,
instead of setting the source file perms.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Joshua Lock
Some debugging information.

The temp file opened by Firefox in Evince:

user@computer:/tmp
$ stat -c '%n %a %A' Some\ Pdf.pdf 
Some\ Pdf.pdf 400 -r

The same file saved in my home directory using Save a copy:

user@computer:~/Documents
$ stat -c '%n %a %A' Some\ Pdf.pdf 
Some\ Pdf.pdf 400 -r

user@computer:~/Documents
$ umask
0002

The resulting file should be 664 though, right?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1084820] Re: Save Copy As with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Joshua Lock
I just wrote a simple test program (attached) to try and replicate the
code path where the file is copied and it results in a file with 664
permissions.

Seems the bug *is* in evince, but it's not a bug that upstream can
replicate.

** Attachment added: test-g-file-copy.c
   
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1084820/+attachment/3448579/+files/test-g-file-copy.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084820

Title:
  Save Copy As with file opened from Firefox results in restrictive
  permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/evince/+bug/1084820/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs