A bench of Justices BV Nagarathna and R Mahadevan said that these rights exist only to the extent provided by law.